• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AUTHOR = "Autotest Team <autotest@test.kernel.org>"
2TIME = "MEDIUM"
3NAME = "Sample - Using profilers"
4TEST_TYPE = "client"
5TEST_CLASS = "Kernel"
6TEST_CATEGORY = "Functional"
7
8DOC = """
9Runs our sleeptest (bogus test that only sleeps for a given amount of time),
10while running the oprofile profilers, with and without special parameters
11passed to the profiler.
12"""
13
14import logging
15
16logging.info("Testing default event")
17job.profilers.add('oprofile')
18job.run_test('sleeptest', seconds=5, tag='default')
19job.profilers.delete('oprofile')
20
21logging.info("Testing ICACHE_MISSES")
22job.profilers.add('oprofile', 'ICACHE_MISSES:100000')
23job.run_test('sleeptest', seconds=5, tag='icache_misses')
24job.profilers.delete('oprofile')
25