Dynamic profile start/stop

  • Firstly, I like your profiler. Pretty easy to work with.

    I'd like to be able to start a profile at a specific point in my program, ignoring any execution that happens up to that point. Then at some later point stop the profile and write the output to file.
    (e.g. in a game, start and stop at a keypress)

    Is there a way to do this at the moment?
    Would be nice if this was under the macros somewhere, so turning off shiny at compile time turned off any dynamic tests too.


    • Aidin Abedi
      Aidin Abedi

      I'm glad you like it.

      I added a run-time On/Off trigger in the SVN. You must first set the define SHINY_PROFILER_HASENABLED to TRUE (look in ShinyConfig.h), it is by default FALSE. Then use macro PROFILE_SET_ENABLED(boolean) to enable/disable Shiny (by keypress or whatever), it is disabled in the beginning.