return $?
)
+stackTraceTree()
+(
+ awk '
+ BEGIN {
+ print "frame/I:method/C:line/C:cpass/I:aliroot/I";
+ RS="#[0-9]*";
+ aliroot=0;
+ }
+ {
+ if ($3 ~ /Ali*/) aliroot=1; else aliroot=0;
+ gsub("#","",RT);
+ if ($NF!="" && RT!="" && $3!="") print RT" "$3" "$NF" "0" "aliroot
+ }
+ ' "$@" 2>/dev/null
+)
+
goMakeSummary()
(
#all the final stuff goes in here for ease of use:
echo "commonOutputPath=${commonOutputPath}"
#summarize the stacktraces
- awk '
- BEGIN {
- print "frame/I:method/C:line/C:cpass/I:aliroot/I";
- RS="#[0-9]*";
- aliroot=0;
- }
- {
- if ($3 ~ /Ali*/) aliroot=1; else aliroot=0;
- gsub("#","",RT);
- if ($NF!="" && RT!="" && $3!="") print RT" "$3" "$NF" "0" "aliroot
- }
- ' 000*/cpass0/*/stacktrace* 2>/dev/null > stacktrace.tree
- awk '
- BEGIN {
- RS="#[0-9]*";
- aliroot=0;
- }
- {
- if ($3 ~ /Ali*/) aliroot=1; else aliroot=0;
- gsub("#","",RT);
- if ($NF!="" && RT!="" && $3!="") print RT" "$3" "$NF" "1" "aliroot
- }
- ' 000*/cpass1/*/stacktrace* 2>/dev/null >> stacktrace.tree
+ stackTraceTree 000*/cpass0/*/stacktrace* > stacktrace_cpass0.tree
+ stackTraceTree 000*/cpass1/*/stacktrace* > stacktrace_cpass1.tree
echo total numbers for the production:
echo