Skip to content

Commit

Permalink
Enable TRACY_ON_DEMAND
Browse files Browse the repository at this point in the history
To avoid running out of memory when we are not connected to the
node through Tracy.
  • Loading branch information
omerfirmak authored and Geod24 committed May 26, 2021
1 parent 3ffdf76 commit cac0bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_tracy.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ version (Windows)
immutable ObjExt = `.obj`;
immutable CppCmd = [
`cl`, `/std:c++14`, `/DEBUG`, `/c`, `/D "TRACY_ENABLE"`,
`/Fo"` ~ OutputFile ~ `"`, TracySourcePath,
`/D "TRACY_ON_DEMAND"`,`/Fo"` ~ OutputFile ~ `"`, TracySourcePath,
];
}
else
{
immutable ObjExt = `.o`;
immutable CppCmd = [
`clang++`, `-std=c++14`, `-g`, `-c`, `-DTRACY_ENABLE`,
`-fPIC`, `-o`, OutputFile, TracySourcePath,
`-DTRACY_ON_DEMAND`, `-fPIC`, `-o`, OutputFile, TracySourcePath,
];
}

Expand Down

0 comments on commit cac0bd8

Please sign in to comment.