How to User Profiling with Class based Components?

Is it possible to do User Profiling with class based components? I don’t see any documentation on this here:

https://panel.holoviz.org/how_to/profiling/profile.html#user-profiling

Similarly, how to use throttling with class based components? That is not documented either.

https://panel.holoviz.org/how_to/performance/throttling.html#enable-throttling