I just got Flex Builder Professional for the profiling support, and although I can make the profiler work, I am having trouble isolating samples to just a section of my code. Trying to click "clear profiling data" and "stop collecting" in the UI just isn't cutting it.
I'd like to be able to, in my code, do something like:
startProfiling(); // do stuff stopProfiling();
and have that "snapshot" of profiling data visible in the UI.
I can't find any information on this online at all. I know about flash.sampler.* but I don't know how to make flex builder and flash.sampler talk to each other.
This is a pretty routine way to trigger profiler data collection, and I am very frustrated trying to find a solution and hoping someone else has already figured it out.