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

Unified Diff: client/samples/control.profilers

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month 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 | « client/samples/control.patch_verify ('k') | client/samples/control.rpm_kernel » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.profilers
diff --git a/client/samples/control.profilers b/client/samples/control.profilers
new file mode 100644
index 0000000000000000000000000000000000000000..5ed545fc017d42c617224825ff28d6db23cceb17
--- /dev/null
+++ b/client/samples/control.profilers
@@ -0,0 +1,24 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "SHORT"
+NAME = "Sample - More profilers"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Runs sleeptest with differnt profilers present in the autotest tree. Also,
+it shows the convenience logging methods, such as logging.info and
+logging.error.
+"""
+
+import logging
+
+for profiler in ('readprofile', 'oprofile', 'catprofile', 'lockmeter'):
+ try:
+ logging.info("Testing profiler %s", profiler)
+ job.profilers.add(profiler)
+ job.run_test('sleeptest', seconds=5, tag=profiler)
+ job.profilers.delete(profiler)
+ except:
+ logging.error("Test of profiler %s failed", profiler)
+ raise
« no previous file with comments | « client/samples/control.patch_verify ('k') | client/samples/control.rpm_kernel » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698