@@ -317,9 +317,10 @@ class HLL::Backend::MoarVM {
317
317
elsif $ k eq ' gcs' {
318
318
for $ v -> $ gc {
319
319
my @ g := nqp ::list_s();
320
- for <time retained_bytes promoted_bytes gen2_roots full responsible cleared_bytes start_time > -> $ f {
320
+ for <time retained_bytes promoted_bytes gen2_roots full responsible cleared_bytes start_time sequence > -> $ f {
321
321
nqp ::push_s(@ g , ~ ($ gc {$ f } // ' 0' ));
322
322
}
323
+ nqp ::push_s(@ g , ~ $ thread <thread >);
323
324
$ profile_fh . say (' INSERT INTO gcs VALUES (' ~ nqp :: join (' ,' , @ g ) ~ ' );' );
324
325
}
325
326
}
@@ -404,6 +405,7 @@ class HLL::Backend::MoarVM {
404
405
$ profile_fh . say (' CREATE TABLE types(id INTEGER PRIMARY KEY ASC, name TEXT);' );
405
406
$ profile_fh . say (' CREATE TABLE routines(id INTEGER PRIMARY KEY ASC, name TEXT, line INT, file TEXT);' );
406
407
$ profile_fh . say (' CREATE TABLE gcs(time INT, retained_bytes INT, promoted_bytes INT, gen2_roots INT, full INT, responsible INT, cleared_bytes INT, start_time INT);' );
408
+ $ profile_fh . say (' CREATE TABLE gcs(time INT, retained_bytes INT, promoted_bytes INT, gen2_roots INT, full INT, responsible INT, cleared_bytes INT, start_time INT, sequence_num INT, thread_id INT);' );
407
409
$ profile_fh . say (' CREATE TABLE calls(id INTEGER PRIMARY KEY ASC, parent_id INT, routine_id INT, osr INT, spesh_entries INT, jit_entries INT, inlined_entries INT, inclusive_time INT, exclusive_time INT, entries INT, deopt_one INT, deopt_all INT, rec_depth INT, FOREIGN KEY(routine_id) REFERENCES routines(id));' );
408
410
$ profile_fh . say (' CREATE TABLE profile(total_time INT, spesh_time INT, thread_id INT, root_node INT, FOREIGN KEY(root_node) REFERENCES calls(id));' );
409
411
$ profile_fh . say (' CREATE TABLE allocations(call_id INT, type_id INT, spesh INT, jit INT, count INT, PRIMARY KEY(call_id, type_id), FOREIGN KEY(call_id) REFERENCES calls(id), FOREIGN KEY(type_id) REFERENCES types(id));' );
0 commit comments