Skip to content

Commit

Permalink
Init tracy in main.d
Browse files Browse the repository at this point in the history
Tracy is not a TrackingGC only thing.
  • Loading branch information
omerfirmak authored and Geod24 committed May 26, 2021
1 parent ec048ac commit 3ffdf76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions source/agora/node/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import agora.node.FullNode;
import agora.node.Validator;
import agora.node.Runner;
import agora.utils.Workarounds;
import agora.utils.TracyAPI;

import vibe.core.core;
import vibe.inet.url;
Expand All @@ -41,6 +42,11 @@ import std.typecons : Nullable;

import core.exception;

static this ()
{
___tracy_init_thread();
}

/// Application entry point
private int main (string[] args)
{
Expand Down
5 changes: 0 additions & 5 deletions source/agora/utils/gc/GC.d
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ __gshared long lockTime;

ulong bytesAllocated; // thread local counter

static this ()
{
___tracy_init_thread();
}

private
{
extern (C)
Expand Down

0 comments on commit 3ffdf76

Please sign in to comment.