Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1216)

Unified Diff: init/perf_log.h

Issue 524041: Changes to make upstart log performance stats to a file. (Closed)
Patch Set: More tab/space stuff Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « init/main.c ('k') | init/perf_log.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: init/perf_log.h
diff --git a/init/perf_log.h b/init/perf_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..355024d0f584f9ea2bba122873e2353733c62ad9
--- /dev/null
+++ b/init/perf_log.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PERF_LOG_H
+#define PERF_LOG_H
+
+#include "job.h"
+
+NIH_BEGIN_EXTERN
+
+char **get_file_fields (void *parent,
+ const char *file,
+ char *delimiters,
+ int *fields);
+
+void perf_log_init (void);
+
+void perf_log_flush (void);
+
+void perf_log_set_files (const char *uptime_file,
+ const char *diskstats_file,
+ const char *timestamp_file);
+
+void perf_log_message (const char *format,
+ ...);
+
+void perf_log_job_state_change (Job *job,
+ JobState new_state);
+
+NIH_END_EXTERN
+
+#endif /* PERF_LOG_H */
« no previous file with comments | « init/main.c ('k') | init/perf_log.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698