stack trace analyze script improved
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 13 Jun 2016 11:08:00 +0000 (14:08 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 13 Jun 2016 11:08:00 +0000 (14:08 +0300)
tools/analyze_threads.pl

index db7d13c..9b8c810 100755 (executable)
@@ -5,6 +5,7 @@
        "__1cFQdDueueKgetOrBlock6MI_pv_",
        "ConditionWait",
        "__1cNConditionWait6FpnSnetxms_condition_t_I_b_",
+        "SleepAndCheckForShutdown",
        "poll",
        "select",
        "accept"
@@ -47,6 +48,12 @@ while(<STDIN>)
    {
       $func = $1;
    }
+   
+   if ($func =~ /^([^@(]+)[@(].*$/)
+   {
+      $func = $1;
+   }
+
    $data[$index++] = $line;
    if (exists $skiplist{$func})
    {