diff options
Diffstat (limited to 'simpleperf/scripts/pprof_proto_generator.config')
-rw-r--r-- | simpleperf/scripts/pprof_proto_generator.config | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/simpleperf/scripts/pprof_proto_generator.config b/simpleperf/scripts/pprof_proto_generator.config new file mode 100644 index 00000000..aa82b92c --- /dev/null +++ b/simpleperf/scripts/pprof_proto_generator.config @@ -0,0 +1,39 @@ +# This configuration is written in python and used by binary_cache_builder.py. + +import os +import os.path + +# path of profiling record data. +perf_data_path = "perf.data" + +# output path. +output_file = "pprof.profile" + + +# directory to cache binaries with symbols and debug information. +# Can be generated by binary_cache_builder.py. +binary_cache_dir = "binary_cache" + + +# path to find kernel symbols. +kallsyms = "" + + +if binary_cache_dir: + path = os.path.join(binary_cache_dir, 'kallsyms') + if os.path.isfile(path): + kallsyms = path + +# Sample Filters +# Use samples only in threads with selected names. +comm_filters = [] +# Use samples only in processes with selected process ids. +pid_filters = [] +# Use samples only in threads with selected thread ids. +tid_filters = [] +# Use samples only in selected binaries. +dso_filters = [] + +# We use addr2line to map virtual address to source file and source line. +# So set the path to addr2line here. +addr2line_path = "addr2line"
\ No newline at end of file |