ASP.Net/Response/Process — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 15:30, 26 мая 2010
ASP.NET Process Info (VB.net)
<html>
<head>
<title>ASP.NET Process Info</title>
</head>
<body>
<script language="VB" runat=server>
Sub Page_Load(sender As Object, e As EventArgs)
Dim history As ProcessInfo() = ProcessModelInfo.GetHistory(10)
Dim i As Integer
For i = 0 To history.Length -1
Response.Write ("<table border>")
Response.Write("<tr><td>ASP.NET Process Start Date and Time<td>" & history(i).StartTime.ToString())
Response.Write("<tr><td>Process Age ( HH:MM:SS:LongDecimal )<td>" & history(i).Age.ToString())
Response.Write("<tr><td>Process ID ( The same as in Task Manager )<td>" & history(i).ProcessID.ToString())
Response.Write("<tr><td>Total Request Count (Requests served since the process started)<TD>" & history(i).RequestCount.ToString())
Response.Write("<tr><td>Peak Memory Used ( KB ) <td>" & history(i).PeakMemoryUsed.ToString())
Response.Write("</table>")
Next
End Sub
</script>
</body>
</html>