Chromium Code Reviews

Side by Side 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: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
1 AUTHOR = "Autotest Team <autotest@test.kernel.org>"
2 TIME = "SHORT"
3 NAME = "Sample - More profilers"
4 TEST_TYPE = "client"
5 TEST_CLASS = "Kernel"
6 TEST_CATEGORY = "Functional"
7
8 DOC = """
9 Runs sleeptest with differnt profilers present in the autotest tree. Also,
10 it shows the convenience logging methods, such as logging.info and
11 logging.error.
12 """
13
14 import logging
15
16 for profiler in ('readprofile', 'oprofile', 'catprofile', 'lockmeter'):
17 try:
18 logging.info("Testing profiler %s", profiler)
19 job.profilers.add(profiler)
20 job.run_test('sleeptest', seconds=5, tag=profiler)
21 job.profilers.delete(profiler)
22 except:
23 logging.error("Test of profiler %s failed", profiler)
24 raise
OLDNEW

Powered by Google App Engine