--- a/src/hotspot/share/jfr/leakprofiler/emitEventOperation.cpp Thu Jun 28 15:06:55 2018 +0200
+++ b/src/hotspot/share/jfr/leakprofiler/emitEventOperation.cpp Thu Jun 28 15:13:39 2018 +0200
@@ -216,6 +216,7 @@
e.set_starttime(GranularTimer::start_time());
e.set_endtime(GranularTimer::end_time());
e.set_allocationTime(sample->allocation_time());
+ e.set_lastKnownHeapUsage(sample->heap_used_at_last_gc());
e.set_object(object_id);
e.set_arrayElements(array_size(*object_addr));
e.set_root(gc_root_id);