roctx rocprof integration

Change-Id: Ia5e3a60c8d89ef0b04a83f09be361454a95e9689
Tá an tiomantas seo le fáil i:
Evgeny tiomanta 2019-10-09 23:39:59 -05:00
1 tuismitheoir 484a8402e1
tiomantas 8ebf2fc5fa
3 comhad athraithe
+120 -45

Níor tháinig aon chomhaid le do chuardach

+5
Féach ar an gComhad
@@ -24,6 +24,11 @@ def gen_api_json_trace(db, table, start_us, outfile):
db.dump_json('B', table, outfile)
db.execute('DROP VIEW B')
def gen_ext_json_trace(db, table, start_us, outfile):
db.execute('create view B as select Name as name, pid, tid, (BeginNs/1000 - %d) as ts, ((EndNs - BeginNs)/1000) as dur from %s order by ts asc;' % (start_us, table));
db.dump_json('B', table, outfile)
db.execute('DROP VIEW B')
def gen_ops_json_trace(db, table, base_pid, start_us, outfile):
db.execute('create view B as select "Index", Name as name, ("dev-id" + %d) as pid, tid, (BeginNs/1000 - %d) as ts, (DurationNs/1000) as dur from %s order by ts asc;' % (base_pid, start_us, table));
db.dump_json('B', table, outfile)