1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * All rights reserved. 4 * 5 * This source code is licensed under the BSD-style license found in the 6 * LICENSE file in the root directory of this source tree. 7 */ 8 9 #include <stdlib.h> 10 #include <cstdint> 11 12 #pragma once 13 14 namespace torch { 15 namespace executor { 16 17 typedef uint32_t AllocatorID; 18 typedef int32_t ChainID; 19 typedef uint32_t DebugHandle; 20 21 /** 22 * EventTracer is a class that users can inherit and implement to 23 * log/serialize/stream etc. the profiling and debugging events that are 24 * generated at runtime for a model. An example of this is the ETDump 25 * implementation in the SDK codebase that serializes these events to a 26 * flatbuffer. 27 */ 28 class EventTracer {}; 29 30 struct EventTracerEntry {}; 31 32 } // namespace executor 33 } // namespace torch 34