Allow specifying workload objects directly in the Executor's workloads field
Created by: bjackman
Right now you have to use a big dictionary to describe the workloads for an Executor instance, for example:
experiments_conf = {
'confs': [{
'tag': "my_conf"
}],
"wloads" : {
"my_wload" : {
"type" : "rt-app",
"conf" : {
"class" : "profile",
"params" : {
"my_task" : {
"kind" : "Periodic",
"params" : {
<task params>
},
},
},
},
},
},
}
It's hard to remember the format for this and it isn't documented.
A nicer API might look something like:
experiments_conf = {
'confs': [{
'tag': conf_name
}],
"wloads" : [
RTA(target, wl_name, profile={'mytask': Periodic()})
]
}
I began implementing this in this PR but never had time to finish it before leaving Arm.