mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 05:15:59 +02:00
Added CPU usage to profiler thread list
This commit is contained in:
parent
8c086eb7ef
commit
7c03f5e2cd
6 changed files with 139 additions and 60 deletions
|
@ -10,12 +10,23 @@ namespace System.Diagnostics
|
|||
|
||||
struct ProfileInstance : int32
|
||||
{
|
||||
public void Dispose()
|
||||
public bool HasValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return this != 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose() mut
|
||||
{
|
||||
if (this == 0)
|
||||
return;
|
||||
String str = scope String();
|
||||
str.Append("StopSampling\t");
|
||||
((int32)this).ToString(str);
|
||||
Internal.ProfilerCmd(str);
|
||||
this = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue