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

Unified Diff: init/job.c

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/Makefile.in ('k') | init/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: init/job.c
diff --git a/init/job.c b/init/job.c
index dca7109757ad7800bf6e2bbe7f19212c223ee9ae..fe09a7e7298cb04ece346c5d3c14cb7e72678b87 100644
--- a/init/job.c
+++ b/init/job.c
@@ -54,6 +54,7 @@
#include "event_operator.h"
#include "blocked.h"
#include "control.h"
+#include "perf_log.h"
#include "com.ubuntu.Upstart.Job.h"
#include "com.ubuntu.Upstart.Instance.h"
@@ -284,6 +285,7 @@ job_change_state (Job *job,
nih_info (_("%s state changed from %s to %s"), job_name (job),
job_state_name (job->state), job_state_name (state));
+ perf_log_job_state_change(job, state);
old_state = job->state;
job->state = state;
« no previous file with comments | « init/Makefile.in ('k') | init/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698