aboutsummaryrefslogtreecommitdiff
path: root/include/perfetto/ext/base/watchdog_posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/perfetto/ext/base/watchdog_posix.h')
-rw-r--r--include/perfetto/ext/base/watchdog_posix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/perfetto/ext/base/watchdog_posix.h b/include/perfetto/ext/base/watchdog_posix.h
index 40e328938..9a6e1dda5 100644
--- a/include/perfetto/ext/base/watchdog_posix.h
+++ b/include/perfetto/ext/base/watchdog_posix.h
@@ -27,6 +27,14 @@
namespace perfetto {
namespace base {
+struct ProcStat {
+ unsigned long int utime = 0l;
+ unsigned long int stime = 0l;
+ long int rss_pages = -1l;
+};
+
+bool ReadProcStat(int fd, ProcStat* out);
+
// Ensures that the calling program does not exceed certain hard limits on
// resource usage e.g. time, memory and CPU. If exceeded, the program is
// crashed.