@@ -38,6 +38,7 @@ import {
3838 getRelevantPagesForActiveTab ,
3939 getSymbolServerUrl ,
4040 getActiveTabID ,
41+ getBrowserConnection ,
4142} from 'firefox-profiler/selectors' ;
4243import {
4344 getSelectedTab ,
@@ -397,7 +398,7 @@ export function finalizeFullProfileView(
397398 const thread = profile . threads [ threadIndex ] ;
398399 const { samples, jsAllocations, nativeAllocations } = thread ;
399400 hasSamples = [ samples , jsAllocations , nativeAllocations ] . some ( ( table ) =>
400- hasUsefulSamples ( table ?. stack , thread )
401+ hasUsefulSamples ( table ?. stack , thread , profile . shared )
401402 ) ;
402403 if ( hasSamples ) {
403404 break ;
@@ -722,15 +723,20 @@ export function resymbolicateProfile(): ThunkAction<Promise<void>> {
722723 const symbolStore = getSymbolStore (
723724 dispatch ,
724725 getSymbolServerUrl ( getState ( ) ) ,
725- null
726+ getBrowserConnection ( getState ( ) )
726727 ) ;
727728 const profile = getProfile ( getState ( ) ) ;
728729 if ( ! symbolStore ) {
729730 throw new Error (
730731 'There was no symbol store when attempting to re-symbolicate.'
731732 ) ;
732733 }
733- await doSymbolicateProfile ( dispatch , profile , symbolStore ) ;
734+ await doSymbolicateProfile (
735+ dispatch ,
736+ profile ,
737+ symbolStore ,
738+ /* ignoreCache */ true
739+ ) ;
734740 } ;
735741}
736742
@@ -793,7 +799,7 @@ export function bulkProcessSymbolicationSteps(
793799 symbolicationStepsPerThread : Map < ThreadIndex , SymbolicationStepInfo [ ] >
794800) : ThunkAction < void > {
795801 return ( dispatch , getState ) => {
796- const { threads } = getProfile ( getState ( ) ) ;
802+ const { threads, shared } = getProfile ( getState ( ) ) ;
797803 const oldFuncToNewFuncsMaps : Map < ThreadIndex , FuncToFuncsMap > = new Map ( ) ;
798804 const symbolicatedThreads = threads . map ( ( oldThread , threadIndex ) => {
799805 const symbolicationSteps = symbolicationStepsPerThread . get ( threadIndex ) ;
@@ -802,6 +808,7 @@ export function bulkProcessSymbolicationSteps(
802808 }
803809 const { thread, oldFuncToNewFuncsMap } = applySymbolicationSteps (
804810 oldThread ,
811+ shared ,
805812 symbolicationSteps
806813 ) ;
807814 oldFuncToNewFuncsMaps . set ( threadIndex , oldFuncToNewFuncsMap ) ;
@@ -1004,7 +1011,8 @@ function getSymbolStore(
10041011export async function doSymbolicateProfile (
10051012 dispatch : Dispatch ,
10061013 profile : Profile ,
1007- symbolStore : SymbolStore
1014+ symbolStore : SymbolStore ,
1015+ ignoreCache ? : boolean
10081016) {
10091017 dispatch ( startSymbolicating ( ) ) ;
10101018
@@ -1027,7 +1035,8 @@ export async function doSymbolicateProfile(
10271035 ) ;
10281036 } )
10291037 ) ;
1030- }
1038+ } ,
1039+ ignoreCache
10311040 ) ;
10321041
10331042 await Promise . all ( completionPromises ) ;
@@ -1895,7 +1904,7 @@ export function changeTabFilter(tabID: TabID | null): ThunkAction<void> {
18951904 const thread = profile . threads [ threadIndex ] ;
18961905 const { samples, jsAllocations, nativeAllocations } = thread ;
18971906 hasSamples = [ samples , jsAllocations , nativeAllocations ] . some ( ( table ) =>
1898- hasUsefulSamples ( table ?. stack , thread )
1907+ hasUsefulSamples ( table ?. stack , thread , profile . shared )
18991908 ) ;
19001909 if ( hasSamples ) {
19011910 break ;
0 commit comments