Enabling And Disabling Triggers


  By default, triggers are active when the JVM is started for profiling. There are two ways to disable triggers at startup:
  • disable individually on startup
    In the trigger configuration you can select single triggers and disable them. Those triggers will be shown in gray.
  • disable all on startup
    In the session startup dialog there is a check box Enable triggers on startup. If you deselect this check box, all triggers will be disabled when the JVM is started for profiling.
During a live session, you can enable or disable all triggers by choosing Profiling->(Enable|Disable) Triggers from JProfiler's main menu. Bookmarks will be added when triggers are enabled or disabled manually.

The trigger recording state is shown in the status bar with a flag icon which is shown in gray when triggers are not enabled. Clicking on the flag icon will toggle trigger recording.

  Sometimes, you need to toggle trigger recording for groups of triggers at the same time. This is possible by assigning the same group ID to the triggers of interest and invoking Profiling->Enable Triggers Groups from JProfiler's main menu.

A dialog will be shown where you can select one or more group IDs. Furthermore, there are radio buttons to control whether the selected trigger groups should be enabled or disabled.

Enabling or disabling trigger groups overrides the global trigger recording status as well as the initial disabling of individual triggers.