com.hubspot.chrome.devtools.client.core.heapprofiler.LastSeenObjectIdEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.heapprofiler;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
/**
* If heap objects tracking has been started then backend regularly sends a current value for last
* seen object id and corresponding timestamp. If the were changes in the heap since last event
* then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
*/
public final class LastSeenObjectIdEvent extends Event {
private Integer lastSeenObjectId;
private Number timestamp;
@JsonCreator
public LastSeenObjectIdEvent(@JsonProperty("lastSeenObjectId") Integer lastSeenObjectId,
@JsonProperty("timestamp") Number timestamp) {
this.lastSeenObjectId = lastSeenObjectId;
this.timestamp = timestamp;
}
public Integer getLastSeenObjectId() {
return lastSeenObjectId;
}
public Number getTimestamp() {
return timestamp;
}
}