Add new run configuration for Java FlightRecorder
@@ -212,6 +212,38 @@ ext {
</configuration>
'''))
+ // Run config for a client with activated Java FlightRecorder recording. Recording will be dumped when the application is closed
+ runManager.append(new XmlParser().parseText('''
+ <configuration default="false" name="TerasologyPC (Java FlightRecorder)" type="Application" factoryName="Application">
+ <extension name="coverage" enabled="false" merge="false" runner="idea">
+ <pattern>
+ <option name="PATTERN" value="org.terasology.engine.*"/>
+ <option name="ENABLED" value="true"/>
+ </pattern>
+ </extension>
+ <option name="MAIN_CLASS_NAME" value="org.terasology.engine.Terasology"/>
+ <option name="VM_PARAMETERS" value="-Xms256m -Xmx1536m -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -XX:StartFlightRecording=filename=terasology.jfr,dumponexit=true"/>
+ <option name="PROGRAM_PARAMETERS" value="-homedir -noCrashReport"/>
+ <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$"/>
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false"/>
+ <option name="ALTERNATIVE_JRE_PATH" value=""/>
+ <option name="ENABLE_SWING_INSPECTOR" value="false"/>
+ <option name="ENV_VARIABLES"/>
+ <option name="PASS_PARENT_ENVS" value="true"/>
+ <module name="PC"/>
+ <envs/>
+ <RunnerSettings RunnerId="Debug">
+ <option name="DEBUG_PORT" value=""/>
+ <option name="TRANSPORT" value="0"/>
+ <option name="LOCAL" value="true"/>
+ </RunnerSettings>
+ <RunnerSettings RunnerId="Run"/>
+ <ConfigurationWrapper RunnerId="Debug"/>
+ <ConfigurationWrapper RunnerId="Run"/>
+ <method/>
+ </configuration>
+ '''))
+
// Run config for a second client in its own data dir (for easy multiplayer testing)
runManager.append(new XmlParser().parseText('''
<configuration default="false" name="TerasologyPC (2nd client)" type="Application" factoryName="Application">
