tools/summarise_kerneltrace.pl
changeset 99 e23a8d7ea8bb
parent 95 aad950cacc2b
--- a/tools/summarise_kerneltrace.pl	Mon Nov 01 15:06:10 2010 +0000
+++ b/tools/summarise_kerneltrace.pl	Tue Nov 02 10:32:18 2010 +0000
@@ -23,8 +23,21 @@
 my %loaded_exes;
 
 my $line;
+my $partline = "";
 while ($line = <>)
 	{
+	# Clean up the effect of "DTimer::Create ..." traces in the middle of lines
+	if ($partline ne "")
+		{
+		$line = $partline . $line;
+		$partline = "";
+		}
+	elsif ($line =~ /^(.*)(DTimer::Create.*)$/o)
+		{
+		$line = $2;
+		$partline = $1;
+		}
+
 	# AddThread ekern.exe::NVMem-ecc10dce to ekern.exe
 	# Process FLogSvr.exe Die: 0 0 Kill
 	# DLibrary domainSrv.exe::domainpolicy2.dll Close m=-1