roctx rocprof integration
Change-Id: Ia5e3a60c8d89ef0b04a83f09be361454a95e9689
Tá an tiomantas seo le fáil i:
1 tuismitheoir
484a8402e1
tiomantas
8ebf2fc5fa
3 comhad athraithe
+120
-45
Níor tháinig aon chomhaid le do chuardach
@@ -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)
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir