Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add specialized LeanNode for thread-level
- Loading branch information
Showing
6 changed files
with
67 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/com/insightfullogic/honest_profiler/core/profiles/lean/LeanThreadNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.insightfullogic.honest_profiler.core.profiles.lean; | ||
|
||
public class LeanThreadNode extends LeanNode | ||
{ | ||
private ThreadInfo threadInfo; | ||
|
||
public LeanThreadNode() | ||
{ | ||
super((FrameInfo)null, null); | ||
} | ||
|
||
private LeanThreadNode(LeanThreadNode source) | ||
{ | ||
super(source, null); | ||
this.threadInfo = source.threadInfo; | ||
} | ||
|
||
public ThreadInfo getThreadInfo() | ||
{ | ||
return threadInfo; | ||
} | ||
|
||
public void setThreadInfo(ThreadInfo threadInfo) | ||
{ | ||
this.threadInfo = threadInfo; | ||
} | ||
|
||
@Override | ||
public LeanThreadNode copy() | ||
{ | ||
return new LeanThreadNode(this); | ||
} | ||
} |