1# This configuration is written in python and used by binary_cache_builder.py. 2 3import os 4import os.path 5 6# path of profiling record data. 7perf_data_path = "perf.data" 8 9# output path. 10output_file = "pprof.profile" 11 12 13# directory to cache binaries with symbols and debug information. 14# Can be generated by binary_cache_builder.py. 15binary_cache_dir = "binary_cache" 16 17 18# path to find kernel symbols. 19kallsyms = "" 20 21 22if binary_cache_dir: 23 path = os.path.join(binary_cache_dir, 'kallsyms') 24 if os.path.isfile(path): 25 kallsyms = path 26 27# Sample Filters 28# Use samples only in threads with selected names. 29comm_filters = [] 30# Use samples only in processes with selected process ids. 31pid_filters = [] 32# Use samples only in threads with selected thread ids. 33tid_filters = [] 34# Use samples only in selected binaries. 35dso_filters = [] 36 37# We use addr2line to map virtual address to source file and source line. 38# So set the path to addr2line here. 39addr2line_path = "addr2line"