mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8015683: object_count_after_gc should have the same timestamp for all events
Reviewed-by: mgerdin, stefank
This commit is contained in:
parent
f9c8b8769a
commit
2eab1610b0
3 changed files with 12 additions and 7 deletions
|
@ -31,15 +31,16 @@
|
|||
|
||||
#if INCLUDE_SERVICES
|
||||
|
||||
void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id) {
|
||||
void ObjectCountEventSender::send(const KlassInfoEntry* entry, GCId gc_id, jlong timestamp) {
|
||||
assert(Tracing::is_event_enabled(EventObjectCountAfterGC::eventId),
|
||||
"Only call this method if the event is enabled");
|
||||
|
||||
EventObjectCountAfterGC event;
|
||||
EventObjectCountAfterGC event(UNTIMED);
|
||||
event.set_gcId(gc_id);
|
||||
event.set_class(entry->klass());
|
||||
event.set_count(entry->count());
|
||||
event.set_totalSize(entry->words() * BytesPerWord);
|
||||
event.set_endtime(timestamp);
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue