Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created March 10, 2017 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrytz/aa0e72e00a3f1fadee92d62f9708dfbf to your computer and use it in GitHub Desktop.
Save lrytz/aa0e72e00a3f1fadee92d62f9708dfbf to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?><triggers>
<notification_rules>
<notification_rule>
<rule_name>Exit Phase</rule_name>
<rule_path>Scala Compiler</rule_path>
<description/>
<trigger>
<trigger_limit_period>0</trigger_limit_period>
<trigger_sustain_time>0</trigger_sustain_time>
<trigger_on_what>1</trigger_on_what>
<notification_attribute_name>attribute://scala.tools.nsc:type=CompilerPhase/ExitPhase</notification_attribute_name>
<value_evaluator type="com.jrockit.mc.rjmx.triggers.internal.ValueEvaluatorStringMatch">
<maxvalue>typer</maxvalue>
</value_evaluator>
</trigger>
<notification_action>
<notification_action_class>com.jrockit.mc.rjmx.triggers.actions.internal.TriggerActionDiagnosticCommand</notification_action_class>
<settings>
<log_file>/Users/luc/scala/scala/sandbox/rec/jfrStop.log</log_file>
<append>true</append>
<command>JFR.stop name=CompilerPhase</command>
</settings>
</notification_action>
<constraints/>
</notification_rule>
<notification_rule>
<rule_name>Enter Phase</rule_name>
<rule_path>Scala Compiler</rule_path>
<description/>
<trigger>
<trigger_limit_period>0</trigger_limit_period>
<trigger_sustain_time>0</trigger_sustain_time>
<trigger_on_what>1</trigger_on_what>
<notification_attribute_name>attribute://scala.tools.nsc:type=CompilerPhase/EnterPhase</notification_attribute_name>
<value_evaluator type="com.jrockit.mc.rjmx.triggers.internal.ValueEvaluatorStringMatch">
<maxvalue>typer</maxvalue>
</value_evaluator>
</trigger>
<notification_action>
<notification_action_class>com.jrockit.mc.rjmx.triggers.actions.internal.TriggerActionDiagnosticCommand</notification_action_class>
<settings>
<log_file>/Users/luc/scala/scala/sandbox/rec/jfrStart.log</log_file>
<append>true</append>
<command>JFR.start name=CompilerPhase settings=profile dumponexit=true filename=/Users/luc/scala/scala/sandbox/rec/compilerPhase.jfr</command>
</settings>
</notification_action>
<constraints/>
</notification_rule>
</notification_rules>
</triggers>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment