Skip to content

Commit 6b6148d

Browse files
authored
Hide mem_private_usage on Windows. (netdata#21093)
1 parent ee8ac93 commit 6b6148d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/collectors/apps.plugin/apps_output.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,15 @@ void send_collected_data_to_netdata(struct target *root, const char *type, usec_
138138
}
139139
#endif
140140

141+
#ifndef OS_WINDOWS
141142
send_BEGIN(type, string2str(w->clean_name), "mem_private_usage", dt);
142143
#if (PROCESSES_HAVE_VMSHARED == 1)
143144
send_SET("mem", (w->values[PDF_VMRSS] > w->values[PDF_VMSHARED])?(w->values[PDF_VMRSS] - w->values[PDF_VMSHARED]) : 0ULL);
144145
#else
145146
send_SET("mem", w->values[PDF_VMRSS]);
146147
#endif
147148
send_END();
149+
#endif //OS_WINDOWS
148150

149151
#if (PROCESSES_HAVE_VOLCTX == 1) || (PROCESSES_HAVE_NVOLCTX == 1)
150152
send_BEGIN(type, string2str(w->clean_name), "cpu_context_switches", dt);
@@ -312,11 +314,13 @@ void send_charts_updates_to_netdata(struct target *root, const char *type, const
312314
}
313315
#endif
314316

317+
#ifndef OS_WINDOWS
315318
fprintf(stdout, "CHART %s.%s_mem_private_usage '' '%s memory usage without shared' 'MiB' mem %s.mem_private_usage area 20050 %d\n",
316319
type, string2str(w->clean_name), title, type, update_every);
317320
fprintf(stdout, "CLABEL '%s' '%s' 1\n", lbl_name, string2str(w->name));
318321
fprintf(stdout, "CLABEL_COMMIT\n");
319322
fprintf(stdout, "DIMENSION mem '' absolute %ld %ld\n", 1L, 1024L * 1024L);
323+
#endif //OS_WINDOWS
320324

321325
#if (PROCESSES_HAVE_VOLCTX == 1) || (PROCESSES_HAVE_NVOLCTX == 1)
322326
fprintf(stdout, "CHART %s.%s_cpu_context_switches '' '%s CPU context switches' 'switches/s' cpu %s.cpu_context_switches stacked 20010 %d\n",

0 commit comments

Comments
 (0)