profiler: extract SpProfiler into an interface

It would be nice to be able to support a remote profiler session in the
future, so add SpLocalProfiler implementation of SpProfiler interface.
This commit is contained in:
Christian Hergert
2016-04-14 02:37:28 -07:00
parent 5d25b8a242
commit 88d3ae3b74
8 changed files with 1148 additions and 923 deletions

View File

@ -128,7 +128,7 @@ main (gint argc,
g_source_add_unix_fd (gsource, efd, G_IO_IN);
g_source_attach (gsource, NULL);
profiler = sp_profiler_new ();
profiler = sp_local_profiler_new ();
g_signal_connect (profiler,
"failed",