ASP.NET Process Info (VB.net) : Process « Response « ASP.Net

Home
ASP.Net
1.ADO.net Database
2.Ajax
3.Asp Control
4.Collections
5.Components
6.Data Binding
7.Development
8.File Directory
9.HTML Control
10.Language Basics
11.Login Security
12.Mobile Control
13.Network
14.Page
15.Request
16.Response
17.Server
18.Session Cookie
19.Sitemap
20.Theme Style
21.User Control and Master Page
22.Validation by Control
23.Validation by Function
24.WebPart
25.WPF
26.XML
ASP.Net » Response » Process 
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 As Integer
 For i = 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>

           
       
Related examples in the same category
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.