Tracking JIT compiled objects

I’m getting a lot of memory consumption on my Julia sessions after running some heavy workloads. My best bet is that I’m JIT compiling too many functions and maybe I need to use nospecialize somewhere.

What’s the best approach to track this is in my program?

Without any context I’d suggest using to see how many new methods you’re creating.