File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,11 @@ async fn main() -> anyhow::Result<()> {
473
473
. use_delimiter ( true )
474
474
. help ( "Exclude given tables (as foreign key constraints allow)" ) ,
475
475
)
476
+ . arg (
477
+ clap:: Arg :: with_name ( "no-self-profile" )
478
+ . long ( "no-self-profile" )
479
+ . help ( "Exclude some potentially large self-profile tables (additive with --exclude-tables)" ) ,
480
+ )
476
481
. arg (
477
482
clap:: Arg :: with_name ( "since-weeks-ago" )
478
483
. long ( "since-weeks-ago" )
@@ -505,11 +510,17 @@ async fn main() -> anyhow::Result<()> {
505
510
let postgres = matches. value_of ( "postgres-db" ) . unwrap ( ) ;
506
511
let sqlite = matches. value_of ( "sqlite-db" ) . unwrap ( ) ;
507
512
508
- let exclude_tables: Vec < _ > = matches
513
+ let mut exclude_tables: std :: collections :: HashSet < _ > = matches
509
514
. values_of ( "exclude-tables" )
510
515
. unwrap_or_default ( )
511
516
. collect ( ) ;
512
517
518
+ if matches. is_present ( "no-self-profile" ) {
519
+ exclude_tables. insert ( SelfProfileQuerySeries . name ( ) ) ;
520
+ exclude_tables. insert ( SelfProfileQuery . name ( ) ) ;
521
+ // `RawSelfProfile` is intentionally kept.
522
+ }
523
+
513
524
let since_weeks_ago = match clap:: value_t!( matches, "since-weeks-ago" , u32 ) {
514
525
Ok ( weeks) => Some ( weeks) ,
515
526
Err ( err) if err. kind == clap:: ErrorKind :: ArgumentNotFound => None ,
You can’t perform that action at this time.
0 commit comments