pmctest.py (d2c10b2a70e08c3d2a51c65de4b4510b9bb5921b) pmctest.py (345ddfcfe96ec7cc2bbe8b0217eea546fdab200a)
1#!/usr/bin/env python
2# Copyright (c) 2012, Neville-Neil Consulting
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met:
8#

--- 39 unchanged lines hidden (view full) ---

48# to continue or Ctrl-D to stop.
49
50import sys
51import subprocess
52from subprocess import PIPE
53
54# A list of strings that are not really counters, just
55# name tags that are output by pmccontrol -L
1#!/usr/bin/env python
2# Copyright (c) 2012, Neville-Neil Consulting
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met:
8#

--- 39 unchanged lines hidden (view full) ---

48# to continue or Ctrl-D to stop.
49
50import sys
51import subprocess
52from subprocess import PIPE
53
54# A list of strings that are not really counters, just
55# name tags that are output by pmccontrol -L
56notcounter = ["IAF", "IAP", "TSC", "UNC", "UCF", "UCP"]
56notcounter = ["IAF", "IAP", "TSC", "UNC", "UCF", "UCP", "SOFT" ]
57
58def main():
59
60 from optparse import OptionParser
61
62 parser = OptionParser()
63 parser.add_option("-p", "--program", dest="program",
64 help="program to execute")

--- 34 unchanged lines hidden ---
57
58def main():
59
60 from optparse import OptionParser
61
62 parser = OptionParser()
63 parser.add_option("-p", "--program", dest="program",
64 help="program to execute")

--- 34 unchanged lines hidden ---