Package Torello.Browser
Class Profiler.ProfileNode
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Profiler.ProfileNode
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Profiler
public static class Profiler.ProfileNode extends BaseType implements java.io.Serializable
Profile node. Holds callsite information, execution statistics and child nodes.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Profiler.java
- Open New Browser-Tab: Torello/Browser/Profiler.java
File Size: 5,049 Bytes Line Count: 135 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field RunTime.CallFrame
callFrame
Function location.int[]
children
Child node ids.String
deoptReason
The reason of being not optimized.Integer
hitCount
Number of samples where this node was on top of the call stack.int
id
Unique id of the node.Profiler.PositionTickInfo[]
positionTicks
An array of source position ticks.
-
Constructor Summary
Constructors Constructor Description ProfileNode(int id, RunTime.CallFrame callFrame, Integer hitCount, int[] children, String deoptReason, Profiler.PositionTickInfo[] positionTicks)
ConstructorProfileNode(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
id
public final int id
Unique id of the node.
-
callFrame
public final RunTime.CallFrame callFrame
Function location.
-
hitCount
public final java.lang.Integer hitCount
Number of samples where this node was on top of the call stack.
OPTIONAL
-
children
public final int[] children
Child node ids.
OPTIONAL
-
deoptReason
public final java.lang.String deoptReason
The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
OPTIONAL
-
positionTicks
public final Profiler.PositionTickInfo[] positionTicks
An array of source position ticks.
OPTIONAL
-
-
Constructor Detail
-
ProfileNode
public ProfileNode(int id, RunTime.CallFrame callFrame, java.lang.Integer hitCount, int[] children, java.lang.String deoptReason, Profiler.PositionTickInfo[] positionTicks)
Constructor- Parameters:
id
- Unique id of the node.callFrame
- Function location.hitCount
- Number of samples where this node was on top of the call stack.
OPTIONALchildren
- Child node ids.
OPTIONALdeoptReason
- The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
OPTIONALpositionTicks
- An array of source position ticks.
OPTIONAL
-
ProfileNode
public ProfileNode(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'ProfileNode'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; ProfileNode o = (ProfileNode) other; return (this.id == o.id) && Objects.equals(this.callFrame, o.callFrame) && Objects.equals(this.hitCount, o.hitCount) && Arrays.equals(this.children, o.children) && Objects.equals(this.deoptReason, o.deoptReason) && Arrays.deepEquals(this.positionTicks, o.positionTicks);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return this.id + this.callFrame.hashCode() + Objects.hashCode(this.hitCount) + Arrays.hashCode(this.children) + Objects.hashCode(this.deoptReason) + Arrays.deepHashCode(this.positionTicks);
-
-