[sysprof] tools: feature test various sources behind __linux__
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] tools: feature test various sources behind __linux__
- Date: Mon, 16 Nov 2020 22:56:03 +0000 (UTC)
commit bd73d534d0fe28a175964ee15e19e03030881c68
Author: Christian Hergert <chergert redhat com>
Date: Mon Nov 16 14:58:09 2020 -0800
tools: feature test various sources behind __linux__
src/tools/sysprof-cli.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/tools/sysprof-cli.c b/src/tools/sysprof-cli.c
index cfd138f..7590e05 100644
--- a/src/tools/sysprof-cli.c
+++ b/src/tools/sysprof-cli.c
@@ -448,9 +448,11 @@ Examples:\n\
g_object_unref (source);
}
+#ifdef __linux__
source = sysprof_proc_source_new ();
sysprof_profiler_add_source (profiler, source);
g_object_unref (source);
+#endif
#ifdef __linux__
if (!no_perf)
@@ -478,19 +480,23 @@ Examples:\n\
g_object_unref (source);
}
+#ifdef __linux__
if (!no_cpu)
{
source = sysprof_hostinfo_source_new ();
sysprof_profiler_add_source (profiler, source);
g_object_unref (source);
}
+#endif
+#ifdef __linux__
if (!no_memory)
{
source = sysprof_memory_source_new ();
sysprof_profiler_add_source (profiler, source);
g_object_unref (source);
}
+#endif
if (!no_battery)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]