Classes | |
class | Worker |
Worker This is a subclass of thread that submits commands to the server and stores the result in a thread-safe queue. More... | |
Functions | |
def | _main |
def | optionparse |
Option parser returns : Command set to run on each (or all) machines, port to connect to server, List of machines to connect to, File to pickle results to, Dictionary to index which command set to use for which machine. More... | |
def | presentBenchmarkData |
Format of the returned data from remote host should be of the form (this could be cleaned up a little bit) More... | |
def | request_benchmark |
Request benchmark Connects to server and returns data returns: profiling data from server. More... | |
def | runclient |
Variables | |
tuple | PROG_NAME = os.path.basename(sys.argv[0]) |
list | validPerfSuitKeys |
|
private |
Definition at line 331 of file cmsPerfClient.py.
References optionparse(), and runclient().
def cmsPerfClient.optionparse | ( | ) |
Option parser returns : Command set to run on each (or all) machines, port to connect to server, List of machines to connect to, File to pickle results to, Dictionary to index which command set to use for which machine.
Definition at line 17 of file cmsPerfClient.py.
References python.multivaluedict.map().
Referenced by _main().
def cmsPerfClient.presentBenchmarkData | ( | q, | |
outfile | |||
) |
Format of the returned data from remote host should be of the form (this could be cleaned up a little bit)
list of command outputs [ dictionary of cpus { } ]
For example: returned data = [ cmd_output1, cmd_output2 ... ] cmd_output1 = { cpuid1 : cpu_output1, cpuid2 : cpu_output2 ... } # cpuid is "None" if there was only one cpu used cpu_output1 = { candle1 : profset_output1, candle2 : profset_output2 ... } profset_output1 = { profset1 : profile_output1, ... } profile_output1 = { profiletype1: step_output1, ... } step_output1 = { step1: list_of_cpu_times, ... } list_of_cpu_times = [ (evt_num1, secs1), ... ]
We now massage the data
Definition at line 318 of file cmsPerfClient.py.
Referenced by runclient().
def cmsPerfClient.request_benchmark | ( | perfcmds, | |
shost, | |||
sport | |||
) |
Request benchmark Connects to server and returns data returns: profiling data from server.
Definition at line 228 of file cmsPerfClient.py.
Referenced by cmsPerfClient.Worker.run().
def cmsPerfClient.runclient | ( | perfcmds, | |
hosts, | |||
port, | |||
outfile, | |||
cmdindex | |||
) |
Definition at line 271 of file cmsPerfClient.py.
References python.multivaluedict.map(), and presentBenchmarkData().
Referenced by _main().
tuple cmsPerfClient.PROG_NAME = os.path.basename(sys.argv[0]) |
Definition at line 6 of file cmsPerfClient.py.
list cmsPerfClient.validPerfSuitKeys |
Definition at line 8 of file cmsPerfClient.py.