You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
677 B
23 lines
677 B
#!/bin/bash |
|
# SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org> |
|
# SPDX-License-Identifier: LicenseRef-ZrythmLicense |
|
# |
|
# Use CALLGRIND_START_INSTRUMENTATION / |
|
# CALLGRIND_STOP_INSTRUMENTATION to specify where |
|
# to start instrumenting |
|
# |
|
# Set toggle-collect to the function to collect |
|
# data for |
|
|
|
set -x |
|
valgrind --tool=callgrind \ |
|
--collect-jumps=yes \ |
|
--instr-atstart=no --collect-atstart=no \ |
|
--toggle-collect=arranger_object_draw \ |
|
--separate-threads=yes \ |
|
--dump-instr=yes --compress-strings=no \ |
|
--zero-before=main_window_widget_setup \ |
|
--dump-before=main_window_widget_setup \ |
|
--dump-after=main_window_widget_tear_down \ |
|
"$@" |
|
set +x
|
|
|