mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-profile: start on cpu usage instrument
The goal here is to do the whole thing on a fiber rather than how we were doing it before. This just gets the counter registration going, but we need to follow up with the parsing/lseek/etc code.
This commit is contained in:
@ -113,6 +113,8 @@ main (int argc,
|
||||
|
||||
profiler = sysprof_profiler_new ();
|
||||
|
||||
sysprof_profiler_add_instrument (profiler, sysprof_cpu_usage_new ());
|
||||
|
||||
sysprof_profiler_record_async (profiler, writer, NULL, record_cb, NULL);
|
||||
|
||||
g_unix_signal_add (SIGINT, sigint_handler, main_loop);
|
||||
|
||||
Reference in New Issue
Block a user