mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: add symbols to capture
This commit is contained in:
@ -31,6 +31,7 @@ static SysprofRecording *active_recording;
|
||||
static gboolean memprof;
|
||||
static gboolean tracer;
|
||||
static gboolean gnome_shell;
|
||||
static gboolean bundle_symbols;
|
||||
static char *power_profile;
|
||||
static const GOptionEntry entries[] = {
|
||||
{ "capture", 'c', 0, G_OPTION_ARG_FILENAME, &capture_file, "The file to capture into", "CAPTURE" },
|
||||
@ -38,6 +39,7 @@ static const GOptionEntry entries[] = {
|
||||
{ "tracer", 't', 0, G_OPTION_ARG_NONE, &tracer, "Enable tracing with __cyg_profile_enter" },
|
||||
{ "gnome-shell", 's', 0, G_OPTION_ARG_NONE, &gnome_shell, "Request GNOME Shell to provide profiler data" },
|
||||
{ "power-profile", 'p', 0, G_OPTION_ARG_STRING, &power_profile, "Use POWER_PROFILE for duration of recording", "power-saver|balanced|performance" },
|
||||
{ "bundle-symbols", 'b', 0, G_OPTION_ARG_STRING, &bundle_symbols, "Bundle synbols with the capture" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
@ -180,6 +182,9 @@ main (int argc,
|
||||
sysprof_profiler_add_instrument (profiler, sysprof_network_usage_new ());
|
||||
sysprof_profiler_add_instrument (profiler, sysprof_system_logs_new ());
|
||||
|
||||
if (bundle_symbols)
|
||||
sysprof_profiler_add_instrument (profiler, sysprof_symbols_bundle_new ());
|
||||
|
||||
if (power_profile)
|
||||
sysprof_profiler_add_instrument (profiler, sysprof_power_profile_new (power_profile));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user