// Copyright Epic Games, Inc. All Rights Reserved. /* clang-format off */ #if ZEN_WITH_TRACE #include #define TRACE_IMPLEMENT 1 #include void TraceInit(const char* HostOrPath, TraceType Type) { bool EnableEvents = true; switch (Type) { case TraceType::Network: trace::SendTo(HostOrPath); break; case TraceType::File: trace::WriteTo(HostOrPath); break; case TraceType::None: EnableEvents = false; break; } trace::FInitializeDesc Desc = { .bUseImportantCache = false, }; trace::Initialize(Desc); if (EnableEvents) { trace::ToggleChannel("cpu", true); } } #endif // ZEN_WITH_TRACE /* clang-format on */