Interface ILogTEP
Interface for loggers that can produce Trace Event Profiler (TEP) output for viewing in Perfetto.
Namespace: UnityEditor.Build.Pipeline.Interfaces
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
public interface ILogTEP
Methods
AddArg(string, string)
Adds a named key/value arg to the current build step for Perfetto event annotation.
Declaration
void AddArg(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The arg key. |
| string | value | The arg value. |
AddMetaData(string, string)
Adds a named key/value metadata entry to the log, emitted as TEP metadata.
Declaration
void AddMetaData(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The metadata key. |
| string | value | The metadata value. |
FormatForTraceEventProfiler()
Formats the log as a Trace Event Profiler (TEP) JSON document.
Declaration
string FormatForTraceEventProfiler()
Returns
| Type | Description |
|---|---|
| string | The log contents in Trace Event Profiler format. |
ImportExternalTEP(string)
Imports events from an external Trace Event Profiler file into the current build step, so they appear alongside the host events in the formatted output.
Declaration
void ImportExternalTEP(string tepFilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tepFilePath | The path of the Trace Event Profiler file to import. |