diff options
| author | Stefan Boberg <[email protected]> | 2023-05-15 18:48:31 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-15 18:49:42 +0200 |
| commit | 82cfb9b81c40d52a275648cbefc409d70199214c (patch) | |
| tree | a797d29b106ae90fac414ee070ab2ef8c01cb871 /src | |
| parent | Ensure WorkerThreadPool tests always run (diff) | |
| download | zen-82cfb9b81c40d52a275648cbefc409d70199214c.tar.xz zen-82cfb9b81c40d52a275648cbefc409d70199214c.zip | |
added trace::DescribeSession to TraceInit
without this, traces rather unhelpfully show up with no context in
the session browser
Diffstat (limited to 'src')
| -rw-r--r-- | src/zencore/trace.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/zencore/trace.cpp b/src/zencore/trace.cpp index 788dcec07..3aace1972 100644 --- a/src/zencore/trace.cpp +++ b/src/zencore/trace.cpp @@ -1,13 +1,12 @@ // Copyright Epic Games, Inc. All Rights Reserved. -/* clang-format off */ - #if ZEN_WITH_TRACE -#include <zencore/zencore.h> +# include <zencore/config.h> +# include <zencore/zencore.h> -#define TRACE_IMPLEMENT 1 -#include <zencore/trace.h> +# define TRACE_IMPLEMENT 1 +# include <zencore/trace.h> void TraceInit(const char* HostOrPath, TraceType Type) @@ -37,9 +36,16 @@ TraceInit(const char* HostOrPath, TraceType Type) if (EnableEvents) { trace::ToggleChannel("cpu", true); + trace::ThreadRegister("main", /* system id */ 0, /* sort id */ 0); + trace::DescribeSession("zenserver", +# if ZEN_BUILD_DEBUG + trace::Build::Debug, +# else + trace::Build::Development, +# endif + "", + ZEN_CFG_VERSION_BUILD_STRING); } } #endif // ZEN_WITH_TRACE - -/* clang-format on */ |