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