Skip to content

Commit

Permalink
add HXCPP_TRACY_NO_EXIT & HXCPP_TRACY_ON_DEMAND support
Browse files Browse the repository at this point in the history
  • Loading branch information
dazKind committed Sep 9, 2024
1 parent 8e5378e commit 340e90b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hx/gc/Immix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6621,7 +6621,7 @@ void SetTopOfStack(int *inTop,bool inForce)

void *InternalNew(int inSize,bool inIsObject)
{
HX_STACK_FRAME("GC", "new", 0, "GC::new", __FILE__, __LINE__, 0)
// HX_STACK_FRAME("GC", "new", 0, "GC::new", __FILE__, __LINE__, 0)

#ifdef HXCPP_DEBUG
if (sgSpamCollects && sgAllocsSinceLastSpam>=sgSpamCollects)
Expand Down Expand Up @@ -6732,7 +6732,7 @@ void *InternalRealloc(int inFromSize, void *inData,int inSize, bool inExpand)
return hx::InternalNew(inSize,false);
}

HX_STACK_FRAME("GC", "realloc", 0, "GC::relloc", __FILE__ , __LINE__, 0)
// HX_STACK_FRAME("GC", "realloc", 0, "GC::relloc", __FILE__ , __LINE__, 0)

#ifdef HXCPP_DEBUG
if (sgSpamCollects && sgAllocsSinceLastSpam>=sgSpamCollects)
Expand Down
3 changes: 2 additions & 1 deletion toolchain/common-defines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
<flag value='-DHXCPP_WINXP_COMPAT' if="HXCPP_WINXP_COMPAT" tag="haxe"/>

<flag value='-DHXCPP_TRACY' if="HXCPP_TRACY" tag="haxe"/>
<flag value='-DHXCPP_TRACY_DISABLE_STACKS' if="HXCPP_TRACY_DISABLE_STACKS" tag="haxe"/>
<flag value='-DHXCPP_TRACY_NO_EXIT' if="HXCPP_TRACY_NO_EXIT" tag="haxe"/>
<flag value='-DHXCPP_TRACY_ON_DEMAND' if="HXCPP_TRACY_ON_DEMAND" tag="haxe"/>

<mmflag value='-Wno-invalid-offsetof' />
<mmflag value='-Wno-format-security' />
Expand Down
2 changes: 2 additions & 0 deletions toolchain/haxe-target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@
<depend files="hxcpp-depends"/>
<options name="Options.txt"/>
<compilerflag value="-DTRACY_ENABLE"/>
<compilerflag value="-DTRACY_NO_EXIT" if="HXCPP_TRACY_NO_EXIT"/>
<compilerflag value="-DTRACY_ON_DEMAND" if="HXCPP_TRACY_ON_DEMAND"/>

<file name="project/thirdparty/tracy-0.11.1/TracyClient.cpp"/>
<cache value="1" project="hxcpp-tracy" asLibrary="true" />
Expand Down

0 comments on commit 340e90b

Please sign in to comment.