Example #1
0
#!/usr/bin/python
# expCompare [ <expId_spec> ] [ <viewType> ] [ -m <expMetric_list> ] [ <target_list> ]
import openss

my_file = openss.FileList("../../usability/phaseII/fred 900")
my_exptype = openss.ExpTypeList("usertime")
my_expid_1 = openss.expCreate(my_file, my_exptype)

openss.expGo()
openss.wait()

my_file = openss.FileList("../../usability/phaseII/fred 1500")
my_expid_2 = openss.expCreate(my_file, my_exptype)

my_viewtype = openss.ViewTypeList("usertime")
my_metric_list = openss.MetricList(["time"])
my_modifier = openss.ModifierList("function")
my_ids = openss.ExpId

data = openss.expCompare(my_modifier, my_viewtype, my_metric_list)
openss.dumpInfo(data)

openss.exit()
Example #2
0
my_id = openss.expCreate(my_file)

my_pid = openss.PidList(387)
my_pid += 2600
my_pid.add((1,25))

my_id = openss.expCreate(my_pid)

my_line = openss.LineList(22222)
my_line += 222999
my_line.add((333,444))

my_id = openss.expCreate(my_line)

my_exptype = openss.ExpTypeList()
my_exptype += "pcsamp"
my_exptype.add("usertime")

my_id = openss.expCreate(my_file, my_exptype)

my_viewtype = openss.ViewTypeList()
my_viewtype += "butterfly"
my_viewtype.add("inclusive")

my_file_bosco = openss.FileList("bosco")

my_id = openss.expView(my_file_bosco, my_viewtype)

metric_1 = openss.MetricType("mtype_1")
metric_2 = openss.MetricType("etype_2", "mtype_2")
Example #3
0
# <ListOf_expParam> = listParams [ <expId_spec> || all || <expType_list> ]

import openss

my_file = openss.FileList("../../usability/phaseII/fred")
my_exptype = openss.ExpTypeList("pcsamp")
my_expid = openss.expCreate(my_file, my_exptype)

my_exptype = openss.ExpTypeList("pcsamp")
my_modifier = openss.ModifierList("params")

output = openss.list(my_modifier)
print output

output = openss.list(my_modifier, my_expid)
print output

output = openss.list(my_modifier, my_exptype)
print output

my_modifier += "all"
output = openss.list(my_modifier)
print output

openss.exit()
Example #4
0
# expDetach [ <expId_spec> ] [ <target_list> ] [ <expType_list> ]

import openss

try :
    # Create an experiment with pcsamp being the experiment type
    my_file = openss.FileList("../../usability/phaseII/fred 750")
    my_exptype = openss.ExpTypeList("pcsamp")
    exp_id = openss.expCreate(my_file,my_exptype)

    # print out the type
    exp_mod = openss.ModifierList("types")
    print "This should say [pcsamp]: ", openss.list(exp_mod)
    
    openss.expDetach(exp_id,my_exptype)
    print "This should say []: ", openss.list(exp_mod)
    
    my_exptype = openss.ExpTypeList("usertime")
    openss.expAttach(exp_id,my_exptype)
    print "This should say [usertime]: ", openss.list(exp_mod)
    
    openss.expGo(exp_id)
    openss.wait()

    print openss.expView()
    openss.wait() # kluge for delayed exception
    
except openss.error,message:
    print "ERROR: ", message

openss.exit()