Skip to content

Commit 7744538

Browse files
authored
Add num_tasks to performance report (#358)
1 parent 50bf041 commit 7744538

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

reports/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,9 @@ def print_action_summary():
13621362
jss = {}
13631363
printf(benchmark_header%(name_to_href(e["bm_name"])))
13641364
if len(e["workflow_name"]) > 0:
1365-
name2s_list = ["u:%d, t:%d"%(e["num_users"],e["num_threads"]), "w:%s"%(e["workflow_name"]), "c:%d"%(e["context_id"]) ,""]
1365+
name2s_list = ["u:%d, a:%d, t:%d"%(e["num_users"],e["num_tasks"],e["num_threads"]), "w:%s"%(e["workflow_name"]), "c:%d"%(e["context_id"]) ,""]
13661366
else:
1367-
name2s_list = ["u:%d, t:%d"%(e["num_users"],e["num_threads"]), "c:%d"%(e["context_id"]),""]
1367+
name2s_list = ["u:%d, a:%d, t:%d"%(e["num_users"],e["num_tasks"],e["num_threads"]), "c:%d"%(e["context_id"]),""]
13681368
name2s = name2s_list[0]
13691369
del name2s_list[0]
13701370
ht = Histogram.fromString(e["hdr_histogram_rt"])

tulip-runtime/src/main/java/io/github/wfouche/tulip/report/report_py.java

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tulip-runtime/src/main/kotlin/io/github/wfouche/tulip/core/DataCollector.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ object DataCollector {
100100
json += "\"row_id\": ${r.rowId}, "
101101

102102
json += "\"num_users\": $MAX_NUM_USERS, "
103+
json += "\"num_tasks\": $MAX_NUM_TASKS, "
103104
json += "\"num_threads\": $MAX_NUM_THREADS, "
104105
json += "\"queue_length\": ${r.queueLength}, "
105106

tulip-runtime/src/main/kotlin/io/github/wfouche/tulip/core/Tulip.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ var TULIP_CONTEXT_NAME: String = ""
8080
var TULIP_CONTEXT_ID: Int = 0
8181

8282
var MAX_NUM_USERS = 0
83+
var MAX_NUM_TASKS = 0
8384
var MAX_NUM_THREADS = 0
8485

8586
var userActions: Array<Iterator<Int>?>? = null // arrayOfNulls<Iterator<Int>>(NUM_USERS)
@@ -149,6 +150,7 @@ private fun runtimeInit(
149150
TULIP_CONTEXT_NAME = context.name
150151

151152
MAX_NUM_USERS = context.numUsers
153+
MAX_NUM_TASKS = context.numTasks
152154
MAX_NUM_THREADS = context.numThreads
153155
testSuite = tests
154156
newUser = userFactory

0 commit comments

Comments
 (0)