summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aeb290a)
raw | patch | inline | side by side (parent: aeb290a)
author | David Lide <a0216552@gtudci01.(none)> | |
Mon, 18 Aug 2014 14:43:49 +0000 (10:43 -0400) | ||
committer | David Lide <a0216552@gtudci01.(none)> | |
Mon, 18 Aug 2014 14:43:49 +0000 (10:43 -0400) |
ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh | patch | blob | history | |
ti/runtime/netapi/demo/demo_setup_files/stats3.awk | patch | blob | history |
diff --git a/ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh b/ti/runtime/netapi/demo/demo_setup_files/dpicgi4.sh
index 1e258c49e0412980cc7b5072cb3387c2637451e8..5e487f90a959fe6b2f8304f9261025ec6eba6063 100755 (executable)
echo
echo
#dump mem stat
-echo "<HTML>"
-echo "<HEAD>"
-echo "</HEAD>"
-echo "<BODY>"
-echo "<H2> DPI Memory Useage Stats.. Coming Soon.. </H2>"
-echo "<A href=\"\index.html\"> <p><u>RETURN</u></p> </A>"
-echo "</BODY>"
-echo "</HTML>"
-
-#dpidemo stats | awk -f ../stats3.awk
+/usr/bin/transport_dpi_demo stats | awk -f ../stats3.awk
diff --git a/ti/runtime/netapi/demo/demo_setup_files/stats3.awk b/ti/runtime/netapi/demo/demo_setup_files/stats3.awk
index 4650d32c296b66f2f61ac630fb4d6be38e95136a..fdc52e5e002ab64d8e098e6de3c3ab3ddb474e67 100644 (file)
BEGIN { state=0;
+ thread=1;
printf("<HTML>\n");
printf("</HEAD>\n");
printf("<BODY>\n");
- printf("<H2> DPI Memory Utilization Statistics </H2>\n");
-
}
// {
if (state==1)
{
- if ($0 ~"-------------")
+ if ($0 ~"-------------")
+ {
+ }
+ else if ($0 ~ "NAVL DPI")
{
}
else if (NF==1)
}
}
}
-/packets captured/ {if (state==0) {state=1; printf("<table>\n");}}
-/Peak allocated/ {if(state==1) {state=2; printf("</table>");}}
+/packets captured/ {
+ if (state==0)
+ {
+ state=1;
+ printf("<H2> DPI Memory Utilization Statistics Thread %d </H2>\n", thread);
+ printf("<table>\n");}
+}
+/NAVL DPI/ {if(state==1) {state=0; printf("</table>"); thread+=1;}}
END {
+ printf("</table>\n");
printf("</PRE>\n");
printf("<A href=\"\\index.html\"> <p><u> RETURN </u> </p> </A>\n");
printf("</BODY>\n");
printf("</HTML>\n");
-}
\ No newline at end of file
+}