1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Activity tracking global variable.

This commit is contained in:
Bartosz Taudul
2022-09-28 00:31:42 +02:00
parent c7ec2a9e0e
commit fb4d76469b
3 changed files with 18 additions and 1 deletions
+13
View File
@@ -13,6 +13,19 @@
namespace tracy
{
bool s_wasActive = false;
bool WasActive()
{
if( s_wasActive )
{
s_wasActive = false;
return true;
}
return false;
}
void DrawZigZag( ImDrawList* draw, const ImVec2& wpos, double start, double end, double h, uint32_t color, float thickness )
{
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );