Got rid of exception occurring during IncPats search

This commit is contained in:
Kaelin Hooper
2016-08-09 14:38:54 -07:00
parent 7a55fd64f0
commit 53ef2dd461
2 changed files with 15 additions and 20 deletions
@@ -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));
}
}