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

Unified Diff: client/samples/control.oprofile

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.kbuild_and_tests ('k') | client/samples/control.oprofile_power5 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.oprofile
diff --git a/client/samples/control.oprofile b/client/samples/control.oprofile
new file mode 100644
index 0000000000000000000000000000000000000000..db5730a663cca7f8e62886f24a1be1d652a69385
--- /dev/null
+++ b/client/samples/control.oprofile
@@ -0,0 +1,24 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "MEDIUM"
+NAME = "Sample - Using profilers"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Runs our sleeptest (bogus test that only sleeps for a given amount of time),
+while running the oprofile profilers, with and without special parameters
+passed to the profiler.
+"""
+
+import logging
+
+logging.info("Testing default event")
+job.profilers.add('oprofile')
+job.run_test('sleeptest', seconds=5, tag='default')
+job.profilers.delete('oprofile')
+
+logging.info("Testing ICACHE_MISSES")
+job.profilers.add('oprofile', 'ICACHE_MISSES:100000')
+job.run_test('sleeptest', seconds=5, tag='icache_misses')
+job.profilers.delete('oprofile')
« no previous file with comments | « client/samples/control.kbuild_and_tests ('k') | client/samples/control.oprofile_power5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698