@@ -5016,6 +5016,10 @@ sub _processParallelChunk
5016
5016
}
5017
5017
}
5018
5018
5019
+ # chunkID is only used for uniquification and as a key in profile data.
5020
+ # We want this umber to be unique - even if we process more than one TraceFile
5021
+ our $masterChunkID = 0;
5022
+
5019
5023
sub _processFilterWorklist
5020
5024
{
5021
5025
my ($self , $fileList ) = @_ ;
@@ -5141,15 +5145,15 @@ sub _processFilterWorklist
5141
5145
if (0 == $pid ) {
5142
5146
# I'm the child
5143
5147
_processParallelChunk($tmp , $d , $srcReader , \@save , \@state ,
5144
- $now , $processedChunks );
5148
+ $now , $masterChunkID );
5145
5149
exit (0);
5146
5150
} else {
5147
5151
# parent
5148
- $children {$pid } = [$d , $now , $processedChunks ];
5149
- debug(1, " fork:$pid ID $processedChunks \n " );
5152
+ $children {$pid } = [$d , $now , $masterChunkID ];
5153
+ lcovutil:: debug(1, " fork:$pid ID $masterChunkID \n " );
5150
5154
++$currentParallel ;
5151
5155
}
5152
-
5156
+ ++ $masterChunkID ;
5153
5157
}
5154
5158
} # foreach
5155
5159
while ($currentParallel != 0) {
@@ -5306,6 +5310,7 @@ sub applyFilters
5306
5310
$self -> [STATE] |= DID_DERIVE;
5307
5311
5308
5312
if (@filter_workList ) {
5313
+ lcovutil::info(" Apply filtering..\n " );
5309
5314
$self -> _processFilterWorklist(\@filter_workList );
5310
5315
# keep track - so we don't do this again
5311
5316
$self -> [STATE] |= DID_FILTER;
0 commit comments