report utime and stime in summary file
smbaker [Tue, 18 Dec 2012 06:09:05 +0000 (22:09 -0800)]
apps/gacks/gackswatcher.py

index d82fa5c..20958a5 100755 (executable)
@@ -363,7 +363,7 @@ class CgroupTotals:
 
         f = open(tmp_fn, "w")
         for cgroup in cglist:
-            line = "%s %0.2f %0.2f %0.2f" % (cgroup.name, cgroup.charge, cgroup.resv_charge, cgroup.core_charge)
+            line = "%s %0.2f %0.2f %0.2f %s %s" % (cgroup.name, cgroup.charge, cgroup.resv_charge, cgroup.core_charge, str(cgroup.utime), str(cgroup.stime))
             f.write(line + "\n")
             if dump:
                 print line
@@ -424,8 +424,6 @@ def monitor(opts):
             cgroups = CgroupTotals()
             last_hour = hour
 
-        # XXX can we miss processes that live for less than opts.delay time?
-
         time.sleep(opts.delay)
 
 class MyParser(OptionParser):