How do I profile a AssetPostprocessor with OnPostprocessAnimation?

I’m running some code in OnPostprocessAnimation that modifies curves and whatnot. It’s slow - my computer spends 30 seconds reimporting the main character, but if I comment out the body on OnPostprocessAnimation, it takes like 4 seconds.

But I can’t make the OnPostprocessAnimation code show up in the profiler. I have added begin/end profile calls to the code, and I’m reimporting with the editor profiler running in deep profile mode, but all I get in hierarchy view is that AssetDatabase.V2.ImportManagerImport spends 30 seconds in Self ms. Timetime view shows me the same thing, and all the other threads are just idling.

Anything I’m missing? Has this been improved after 2022?