File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,7 @@ impl Index {
671
671
. keys ( )
672
672
. filter ( move |path| path. 0 == krate && path. 1 == profile && path. 2 == cache)
673
673
. map ( |path| path. 3 )
674
+ . filter ( |q| !q. as_str ( ) . starts_with ( "codegen passes [" ) )
674
675
}
675
676
}
676
677
Original file line number Diff line number Diff line change @@ -665,17 +665,27 @@ impl SelfProfile {
665
665
. collect :: < Vec < _ > > ( ) ;
666
666
for cid in cids. iter ( ) {
667
667
let mut queries = Vec :: new ( ) ;
668
+ log:: trace!( "Fetching {} self-profile-query series" , labels. len( ) ) ;
669
+ let conn = tx. conn ( ) ;
670
+ let cid_id = if let Some ( c) = cid. lookup ( & idx) {
671
+ c
672
+ } else {
673
+ res. push ( None ) ;
674
+ continue ;
675
+ } ;
668
676
for label in labels. iter ( ) {
669
677
let query = crate :: db:: DbLabel :: SelfProfileQuery {
670
678
krate,
671
679
profile,
672
680
cache,
673
681
query : * label,
674
682
} ;
675
- if let Some ( qd) = idx
676
- . get :: < crate :: db:: QueryDatum > ( tx. conn ( ) , & query, cid)
677
- . await
678
- {
683
+ let qid = if let Some ( qid) = query. lookup ( & idx) {
684
+ qid
685
+ } else {
686
+ continue ;
687
+ } ;
688
+ if let Some ( qd) = conn. get_self_profile_query ( qid, cid_id) . await {
679
689
queries. push ( QueryData {
680
690
label : * label,
681
691
self_time : qd. self_time . as_nanos ( ) . try_into ( ) . unwrap ( ) ,
You can’t perform that action at this time.
0 commit comments