mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Improve OpenHotPaths
This commit is contained in:
parent
59f2451cf9
commit
b609ff68b1
1 changed files with 9 additions and 9 deletions
|
@ -353,15 +353,15 @@ namespace IDE.ui
|
||||||
|
|
||||||
void OpenHot(ListViewItem lvi, int32 minSamples)
|
void OpenHot(ListViewItem lvi, int32 minSamples)
|
||||||
{
|
{
|
||||||
lvi.WithItems(scope (childItem) =>
|
for (ListViewItem childItem in lvi.mChildItems)
|
||||||
|
{
|
||||||
|
var profileListViewItem = childItem as ProfileListViewItem;
|
||||||
|
if ((profileListViewItem.mSelfSamples + profileListViewItem.mChildSamples >= minSamples) && (profileListViewItem.IsParent))
|
||||||
{
|
{
|
||||||
var profileListViewItem = childItem as ProfileListViewItem;
|
profileListViewItem.Open(true, true);
|
||||||
if ((profileListViewItem.mSelfSamples + profileListViewItem.mChildSamples >= minSamples) && (profileListViewItem.IsParent))
|
OpenHot(childItem, minSamples);
|
||||||
{
|
}
|
||||||
profileListViewItem.Open(true, true);
|
}
|
||||||
OpenHot(childItem, minSamples);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Show(int32 threadId, StringView threadName)
|
public void Show(int32 threadId, StringView threadName)
|
||||||
|
@ -463,7 +463,7 @@ namespace IDE.ui
|
||||||
curItem = newItem;
|
curItem = newItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
OpenHot(mListView.GetRoot(), (.)(totalSamples * 0.05f));
|
OpenHot(mListView.GetRoot(), (.)(totalSamples * 0.1f));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Add(DbgProfiler profiler)
|
public void Add(DbgProfiler profiler)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue