Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkPerfettoTrace.cpp File Reference
#include "tools/trace/SkPerfettoTrace.h"
#include <fcntl.h>
#include <fstream>
#include "src/core/SkTraceEvent.h"
#include "src/core/SkTraceEventCommon.h"
#include "tools/flags/CommandLineFlags.h"

Go to the source code of this file.

Functions

 PERFETTO_TRACK_EVENT_STATIC_STORAGE ()
 
static DEFINE_string (perfettoOutputDir, "./", "Output directory for perfetto trace file(s).\n" "Note: not the name of the file itself.\n" "Will only have an effect if perfetto tracing is enabled. See --trace.")
 
static DEFINE_string (perfettoOutputFileName, "trace", "Output file name (excluding path and file extension) for the perfetto trace" "file.\nNote: When splitting trace files by benchmark (see " "--splitPerfettoTracesByBenchmark), file name will be determined by the " "benchmark name.\n" "Will only have an effect if perfetto tracing is enabled. See --trace.")
 
static DEFINE_string (perfettoOutputFileExtension, ".perfetto-trace", "Output file extension for perfetto trace file(s).\n" "Will only have an effect if perfetto tracing is enabled. See --trace.")
 
static DEFINE_bool (longPerfettoTrace, false, "Perfetto within Skia is optimized for tracing performance of 'smaller' traces" "(~10 seconds or less). Set this flag to true to optimize for longer tracing" "sessions.\n" "Will only have an effect if perfetto tracing is enabled. See --trace.")
 

Function Documentation

◆ DEFINE_bool()

static DEFINE_bool ( longPerfettoTrace  ,
false  ,
"Perfetto within Skia is optimized for tracing performance of 'smaller' traces" "(~10 seconds or less). Set this flag to true to optimize for longer tracing" "sessions.\n" "Will only have an effect if perfetto tracing is enabled. See --trace."   
)
static

◆ DEFINE_string() [1/3]

static DEFINE_string ( perfettoOutputDir  ,
"./"  ,
"Output directory for perfetto trace file(s).\n" "Note: not the name of the file itself.\n" "Will only have an effect if perfetto tracing is enabled. See --trace."   
)
static

◆ DEFINE_string() [2/3]

static DEFINE_string ( perfettoOutputFileExtension  ,
".perfetto-trace"  ,
"Output file extension for perfetto trace file(s).\n" "Will only have an effect if perfetto tracing is enabled. See --trace."   
)
static

◆ DEFINE_string() [3/3]

static DEFINE_string ( perfettoOutputFileName  ,
"trace"  ,
"Output file name   excluding path and file extension) for the perfetto trace" "file.\nNote: When splitting trace files by benchmark (see " "--splitPerfettoTracesByBenchmark,
file name will be determined by the " "benchmark name.\n" "Will only have an effect if perfetto tracing is enabled. See --trace."   
)
static

◆ PERFETTO_TRACK_EVENT_STATIC_STORAGE()

PERFETTO_TRACK_EVENT_STATIC_STORAGE ( )