mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
tools: feature test various sources behind __linux__
This commit is contained in:
@ -448,9 +448,11 @@ Examples:\n\
|
|||||||
g_object_unref (source);
|
g_object_unref (source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
source = sysprof_proc_source_new ();
|
source = sysprof_proc_source_new ();
|
||||||
sysprof_profiler_add_source (profiler, source);
|
sysprof_profiler_add_source (profiler, source);
|
||||||
g_object_unref (source);
|
g_object_unref (source);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (!no_perf)
|
if (!no_perf)
|
||||||
@ -478,19 +480,23 @@ Examples:\n\
|
|||||||
g_object_unref (source);
|
g_object_unref (source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
if (!no_cpu)
|
if (!no_cpu)
|
||||||
{
|
{
|
||||||
source = sysprof_hostinfo_source_new ();
|
source = sysprof_hostinfo_source_new ();
|
||||||
sysprof_profiler_add_source (profiler, source);
|
sysprof_profiler_add_source (profiler, source);
|
||||||
g_object_unref (source);
|
g_object_unref (source);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
if (!no_memory)
|
if (!no_memory)
|
||||||
{
|
{
|
||||||
source = sysprof_memory_source_new ();
|
source = sysprof_memory_source_new ();
|
||||||
sysprof_profiler_add_source (profiler, source);
|
sysprof_profiler_add_source (profiler, source);
|
||||||
g_object_unref (source);
|
g_object_unref (source);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!no_battery)
|
if (!no_battery)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user