Profiler hook example

I am playing with the idea of writing a Flex profiler plugin. I searched the IDEA api documentation but I did not find a good example for hooking into the RUN/DEBUG cycle. Can anyone provide a good starting point (code)? I checked the JProfiler plugin and that's basically what I need:
- install a profile icon next to the debug icon in the toolbar
- call up the run configuration dialog (with the start button set to "Profile") when the profile action is triggered
- start the profiling process when the "Profile" button is clicked

Any help is welcome.

Thanks and Regards,

Please sign in to leave a comment.