# TraceLog header created by create\_standalone.py is not standalone 

**URL:** <https://forums.unrealengine.com/t/tracelog-header-created-by-create-standalone-py-is-not-standalone/2709754>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [February 23, 2026, 3:03pm UTC](https://forums.unrealengine.com/t/tracelog-header-created-by-create-standalone-py-is-not-standalone/2709754 "2026-02-23T15:03:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [February 23, 2026, 3:03pm UTC](https://forums.unrealengine.com/t/tracelog-header-created-by-create-standalone-py-is-not-standalone/2709754/1 "2026-02-23T15:03:10Z")

</div>

The TraceLog module source code includes a Python script called create\_standalone.py. This script creates a single header which, seemingly, should be usable out of the UE build tree for integration of third party libraries with tracing. I wanted to use this in a custom build of the IREE runtime library (part of the experimental NNERuntimeIREE plugin) to redirect the tracing of the library to Unreal Insights, using a custom “tracing provider” (I am not actually if it is possible to get an externally-built DLL to use the common UE tracing client, for now I was just trying to map IREE trace calls to TRACE\_LOG events).

However, I have found that the header has still many dependencies to UE facilities (varying depending on whether TRACE\_IMPLEMENT is 0 or 1): AutoRTFM API, ON\_SCOPE\_EXIT, FPlatformString, several G\* global variables, lz4.h … Some of these are relatively easy to address (e.g. ON\_SCOPE\_EXIT is a single header and I think AutoRTFM can be limited to just the headers of the module if its functionality is disabled), but copying source files from UE to the build tree is tedious and brittle.

Is create\_standalone.py meant to be used in a different way? Or is it outdated and does not account for changes in TraceLog that bring new dependencies?

---

<div class="post-metadata">

**Author:** ![m.ridgers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@m.ridgers](https://forums.unrealengine.com/u/m.ridgers)\
**Post date:** [February 27, 2026, 2:22pm UTC](https://forums.unrealengine.com/t/tracelog-header-created-by-create-standalone-py-is-not-standalone/2709754/2 "2026-02-27T14:22:13Z")

</div>

Hello Javier,

You’re correct on all counts here. It’s a way to use Trace and a subset of the instrumentation primitives that Insights supports. Zen uses it for example. The script had however got a little stale but has now been updated on UE5/Main as of 51294058. The lz4.h include is required, LZ4 is a dependency which is available from Github or can be copied from elsewhere in UE’s tree.

Usage is fairly straightforward;

1) “python x:\ue\Engine\Source\Runtime\TraceLog\create\_standalone.py d:\outdir” - this creates an amalgamated trace.h file in “outdir”.

2) In a .cpp file, “#include \<trace.h\>” with the TRACE\_IMPLEMENT=1 macro defined.

3) The API for CPU scopes and tracing to sockets/files is in the “epilogue” section of trace.h

Zen can be used a reference for use and integration too; [https://github.com/EpicGames/zen/](https://github.com/EpicGames/zen/)

-Martin.
