mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
build: fix build on macOS
This commit is contained in:
@ -52,6 +52,7 @@ static void
|
||||
sysprof_cpu_aid_prepare (SysprofAid *self,
|
||||
SysprofProfiler *profiler)
|
||||
{
|
||||
#ifdef __linux__
|
||||
g_autoptr(SysprofSource) source = NULL;
|
||||
|
||||
g_assert (SYSPROF_IS_CPU_AID (self));
|
||||
@ -59,6 +60,7 @@ sysprof_cpu_aid_prepare (SysprofAid *self,
|
||||
|
||||
source = sysprof_hostinfo_source_new ();
|
||||
sysprof_profiler_add_source (profiler, source);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -52,6 +52,7 @@ static void
|
||||
sysprof_memory_aid_prepare (SysprofAid *self,
|
||||
SysprofProfiler *profiler)
|
||||
{
|
||||
#ifdef __linux__
|
||||
g_autoptr(SysprofSource) source = NULL;
|
||||
|
||||
g_assert (SYSPROF_IS_MEMORY_AID (self));
|
||||
@ -59,6 +60,7 @@ sysprof_memory_aid_prepare (SysprofAid *self,
|
||||
|
||||
source = sysprof_memory_source_new ();
|
||||
sysprof_profiler_add_source (profiler, source);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -53,7 +53,6 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self,
|
||||
SysprofProfiler *profiler)
|
||||
{
|
||||
SysprofRecordingStateViewPrivate *priv = sysprof_recording_state_view_get_instance_private (self);
|
||||
g_autofree gchar *str = NULL;
|
||||
SysprofCaptureWriter *writer;
|
||||
gint64 elapsed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user