提交 7fe07a6c 编写于 作者: E egahlin

8213617: JFR should record the PID of the recorded process

Reviewed-by: mgronlun
上级 49eb117e
......@@ -607,7 +607,8 @@
<Field type="string" name="jvmFlags" label="JVM Settings File Arguments" />
<Field type="string" name="javaArguments" label="Java Application Arguments" />
<Field type="long" contentType="epochmillis" name="jvmStartTime" label="JVM Start Time" />
</Event>
<Field type="long" name="pid" label="Process Identifier" />
</Event>
<Event name="OSInformation" category="Operating System" label="OS Information" period="endChunk">
<Field type="string" name="osVersion" label="OS Version" />
......
......@@ -74,6 +74,7 @@ TRACE_REQUEST_FUNC(JVMInformation) {
event.set_jvmArguments(Arguments::jvm_args());
event.set_jvmFlags(Arguments::jvm_flags());
event.set_jvmStartTime(Management::vm_init_done_time());
event.set_pid(os::current_process_id());
event.commit();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册