I am trying to CPU-profile a callback driven system and I'm only interested in profiling when the callback causes me to react a certain way ? Can I use gperftools to accomplish this ?
ProfilerEnable()
/ProfilerDisable()
seems promising but the header says these are deprecated. I'm not even sure if these would work.