@@ -3,7 +3,7 @@ use chrono::prelude::*;
3
3
use rusqlite:: * ;
4
4
use std:: path:: { Path , PathBuf } ;
5
5
use std:: { collections:: HashMap , time:: Duration } ;
6
- use crate :: sysmonitor:: SystemUsage ;
6
+ use crate :: sysmonitor:: { DATASTRUCTURES_BYTES , SystemUsage } ;
7
7
8
8
pub struct Experiment {
9
9
db_path : PathBuf ,
@@ -199,10 +199,12 @@ impl Experiment {
199
199
speedup,
200
200
201
201
profile_frequency,
202
- dry_run
202
+ dry_run,
203
+
204
+ datastructures_bytes
203
205
)
204
206
VALUES (
205
- ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15, ?16, ?17, ?18, ?19, ?20, ?21, ?22, ?23, ?24, ?25
207
+ ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15, ?16, ?17, ?18, ?19, ?20, ?21, ?22, ?23, ?24, ?25, ?26
206
208
)" ,
207
209
params ! [
208
210
env!( "VERGEN_SHA_SHORT" ) ,
@@ -230,7 +232,8 @@ impl Experiment {
230
232
recall,
231
233
speedup,
232
234
self . config. profile. unwrap_or( 0 ) ,
233
- self . config. dry_run
235
+ self . config. dry_run,
236
+ DATASTRUCTURES_BYTES . load( std:: sync:: atomic:: Ordering :: SeqCst ) as i64
234
237
] ,
235
238
)
236
239
. expect ( "error inserting into main table" ) ;
@@ -456,6 +459,11 @@ fn db_migrate(conn: &Connection) {
456
459
conn. execute_batch ( include_str ! ( "migrations/v10.sql" ) )
457
460
. expect ( "error applying version 10" ) ;
458
461
}
462
+ if version < 11 {
463
+ info ! ( "Applying migration v11" ) ;
464
+ conn. execute_batch ( include_str ! ( "migrations/v11.sql" ) )
465
+ . expect ( "error applying version 11" ) ;
466
+ }
459
467
460
468
info ! ( "Database migration completed!" ) ;
461
469
}
0 commit comments