From 3eefd613d33e0c12033c82eeb87a3c8d452619ae Mon Sep 17 00:00:00 2001 From: UnpluggedCoder Date: Mon, 13 Jan 2020 20:21:40 +0800 Subject: [PATCH] Increase regex compatibility --- stackcollapse-vtune-mc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackcollapse-vtune-mc.pl b/stackcollapse-vtune-mc.pl index 133ed922..e132ab08 100755 --- a/stackcollapse-vtune-mc.pl +++ b/stackcollapse-vtune-mc.pl @@ -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