mirror of
https://github.com/Kae7in/perfview
synced 2026-08-09 12:09:44 +00:00
Got rid of exception occurring during IncPats search
This commit is contained in:
@@ -101,6 +101,8 @@
|
||||
{
|
||||
lock (this.lockobj)
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
|
||||
CallTreeNodeBase node = this.GetNode(name).BackingNode;
|
||||
TreeNode callerTreeNode;
|
||||
|
||||
@@ -135,6 +137,8 @@
|
||||
{
|
||||
lock (this.lockobj)
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
|
||||
CallTreeNodeBase node = this.GetNode(name).BackingNode;
|
||||
TreeNode calleeTreeNode;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
[HttpGet]
|
||||
[Route("stackviewer/summary")]
|
||||
public List<TreeNode> Get(int numNodes, string find)
|
||||
public List<TreeNode> Get(int numNodes, string find="")
|
||||
{
|
||||
return this.dataProvider.GetSummaryTree(numNodes, find);
|
||||
}
|
||||
@@ -29,35 +29,23 @@
|
||||
[Route("stackviewer/node")]
|
||||
public TreeNode Node(string name)
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.GetNode(name);
|
||||
}
|
||||
|
||||
//[HttpGet]
|
||||
//[Route("stackviewer/callertree")]
|
||||
//public TreeNode[] CallerTree(string name)
|
||||
//{
|
||||
// return this.dataProvider.GetCallerTree(name);
|
||||
//}
|
||||
|
||||
//[HttpGet("{path}")]
|
||||
[HttpGet]
|
||||
[Route("stackviewer/callertree")]
|
||||
public TreeNode[] CallerTree(string name, string path, string find)
|
||||
public TreeNode[] CallerTree(string name, string path="", string find="")
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.GetCallerTree(name, path, find);
|
||||
}
|
||||
|
||||
//[HttpGet]
|
||||
//[Route("stackviewer/calleetree")]
|
||||
//public TreeNode[] CalleeTree(string name)
|
||||
//{
|
||||
// return this.dataProvider.GetCalleeTree(name);
|
||||
//}
|
||||
|
||||
[HttpGet]
|
||||
[Route("stackviewer/calleetree")]
|
||||
public TreeNode[] CalleeTree(string name, string path, string find)
|
||||
public TreeNode[] CalleeTree(string name, string path="", string find="")
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.GetCalleeTree(name, path, find);
|
||||
}
|
||||
|
||||
@@ -65,20 +53,23 @@
|
||||
[Route("stackviewer/source")]
|
||||
public SourceInformation Source(string name)
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.Source(this.dataProvider.GetNode(name));
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("stackviewer/source/caller")]
|
||||
public SourceInformation CallerContextSource(string name, string path)
|
||||
public SourceInformation CallerContextSource(string name, string path="")
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.Source(this.dataProvider.GetCallerTreeNode(name, path));
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("stackviewer/source/callee")]
|
||||
public SourceInformation CalleeContextSource(string name, string path)
|
||||
public SourceInformation CalleeContextSource(string name, string path="")
|
||||
{
|
||||
if (name == null) { return null; }
|
||||
return this.dataProvider.Source(this.dataProvider.GetCalleeTreeNode(name, path));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user