Skip to content

Commit

Permalink
Increase regex compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
unpluggedcoder committed Jan 13, 2020
1 parent 1c11ad5 commit 3eefd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackcollapse-vtune-mc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sub usage {
### for Intel VTune 2019
### CSV header should be like below
### Function Stack,Allocation Size:Self,Deallocation Size:Self,Allocations:Self,Module
$currLine =~ /(\s*)(.*?),([0-9]*?\.?[0-9]*?),([0-9]*?\.?[0-9]*?),([0-9]+?),(.*)/ or die "Error in regular expression on the current line $currLine\n";
$currLine =~ /(\s*)(.*?),([0-9]*?\.?[0-9]*?),([0-9]*?\.?[0-9]*?),([0-9]*?\.?[0-9]*?),(.*)/ or die "Error in regular expression on the current line $currLine\n";
my $func = $2.'('.$6.')'; # function(module)
my $depth = length ($1);
my $allocBytes = $3; # allocation size
Expand Down

0 comments on commit 3eefd61

Please sign in to comment.