| # 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" |