com.hubspot.chrome.devtools.client.core.memory.SamplingProfileNode Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.memory;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Heap profile sample.
*/
public final class SamplingProfileNode {
private Number size;
private Number count;
private List stack;
@JsonCreator
public SamplingProfileNode(@JsonProperty("size") Number size, @JsonProperty("count") Number count,
@JsonProperty("stack") List stack) {
this.size = size;
this.count = count;
this.stack = stack;
}
public Number getSize() {
return size;
}
public Number getCount() {
return count;
}
public List getStack() {
return stack;
}
public static SamplingProfileNode.Builder builder() {
return new SamplingProfileNode.Builder();
}
public static final class Builder {
private Number size;
private Number count;
private List stack;
private Builder() {
}
public SamplingProfileNode.Builder setSize(Number size) {
this.size = size;
return this;
}
public SamplingProfileNode.Builder setCount(Number count) {
this.count = count;
return this;
}
public SamplingProfileNode.Builder setStack(List stack) {
this.stack = stack;
return this;
}
public SamplingProfileNode build() {
return new SamplingProfileNode(size, count, stack);
}
}
}