Ejemplo n.º 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()
Ejemplo n.º 2
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()

Ejemplo n.º 3
0
import openss

##################################################################
#
##################################################################

my_file = openss.FileList("../../usability/phaseII/fred")
my_viewtype = openss.ViewTypeList()
my_viewtype += "pcsamp"
exp1 = openss.expCreate(my_file, my_viewtype)

my_modifer = openss.ModifierList()
my_modifer += "all"

try:
    openss.expGo(exp1, my_modifer)
    openss.waitForGo()
except openss.error:
    print "expGo(exp1,my_modifer) failed as it should"

print "after expgo #1"

# If we don't pause we may get an exception
# if the experiment has already terminated.
openss.expGo(my_modifer)
openss.expPause()
print "after expgo #2"

openss.expGo(exp1)
openss.expPause()
print "after expgo #3"
Ejemplo n.º 4
0
my_rank += [1,3,(22,33),564]
openss.RankList(my_rank).add(44)

my_rank2 = openss.RankList()
my_rank2.add(1234)
my_rank2.add(34)
my_rank2 += 888

# The number here is hard coded in a lowlevel routine
my_id = openss.expCreate(my_host,my_rank2,my_rank)
print "my_id: ", my_id

# I need to identify the argument as an experiment
# id so you need to get it into an ExpId object.
exp1 = openss.ExpId(my_id)
openss.expGo(exp1)

openss.expView(exp1,"vtop88")

my_cluster = openss.ClusterList("cluster_1")
my_cluster.add(["cluster_2"])
my_cluster += ["cluster_3","cluster_4"]

my_id = openss.expCreate(my_cluster)

my_thread = openss.ThreadList(987)
my_thread += 765
my_thread.add((22,33))

my_id = openss.expCreate(my_thread)
Ejemplo n.º 5
0
    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()

#my_id = openss.ExpId(openss.expCreate())
#
#my_host = openss.HostList()
#my_host += ["bimbo","bozo"]
#
Ejemplo n.º 6
0
import openss

##################################################################
#
##################################################################

my_file = openss.FileList("../../usability/phaseII/fred")
my_viewtype = openss.ViewTypeList()
my_viewtype += "pcsamp"
exp1 = openss.expCreate(my_file,my_viewtype)

my_modifer = openss.ModifierList()
my_modifer += "all"

try:
    openss.expGo(exp1,my_modifer)
    openss.waitForGo()
except openss.error:
    print "expGo(exp1,my_modifer) failed as it should"

print "after expgo #1"

# If we don't pause we may get an exception
# if the experiment has already terminated.
openss.expGo(my_modifer)
openss.expPause()
print "after expgo #2"

openss.expGo(exp1)
openss.expPause()
print "after expgo #3"