Re: [DOTNET] Measuring performance

2002-04-15 Thread Pradeep Tapadiya
day, April 15, 2002 8:14 AM Subject: Re: [DOTNET] Measuring performance > >From: "Donal Devine" <[EMAIL PROTECTED]> > >Do you have allow anonymous access turned on? - if so IIS is probably > trying to run the code under the >security context of the IUSR_MACHINEN

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
End.Subtract(tsStart)); Response.Write(""); -Original Message- From: Mattias Konradsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 16:14 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Measuring performance >From: "Donal Devine" <[EMAIL PROTECTED]> >Do you have allow

Re: [DOTNET] Measuring performance

2002-04-15 Thread Mattias Konradsson
>From: "Donal Devine" <[EMAIL PROTECTED]> >Do you have allow anonymous access turned on? - if so IIS is probably trying to run the code under the >security context of the IUSR_MACHINENAME account. Yeah, it's turned on.. what's the solution here? It doesnt seem like a good idea to run the entire a

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
: [DOTNET] Measuring performance >>From: "Donal Devine" <[EMAIL PROTECTED]> >>Can you post the code? public void Page_Load(Object sender, EventArgs e) { TimeSpan tsStart = Process.GetCurrentProcess().Threads[0].UserProcessorTime; int c = 0; for (int i=

Re: [DOTNET] Measuring performance

2002-04-15 Thread Mattias Konradsson
>>From: "Donal Devine" <[EMAIL PROTECTED]> >>Can you post the code? public void Page_Load(Object sender, EventArgs e) { TimeSpan tsStart = Process.GetCurrentProcess().Threads[0].UserProcessorTime; int c = 0; for (int i=0;i<1000;i++) { c++; } TimeSpan tsDurat

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
Can you post the code? -Original Message- From: Mattias Konradsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 13:24 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Measuring performance >To view the permissions of this assembly on your machine launch the DotNet Framework Configurat

Re: [DOTNET] Measuring performance

2002-04-15 Thread Mattias Konradsson
>To view the permissions of this assembly on your machine launch the DotNet Framework Configuration >wizard, at:C:\WINNT\Microsoft.NET\Framework\v1.0.3705\mscorcfg.msc >Click on 'Configure Code Access Security Policy'. >Then click on 'Evaluate Assembly'. >Select the System.dll assembly and look at

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
OTECTED] Subject: Re: [DOTNET] Measuring performance >From: "Donal Devine" <[EMAIL PROTECTED]> >Are you an administrator? Yah I am... but do I have to give some explicit rights to the component in order to let it access UserProcess, doesnt it run with administrator rights?

Re: [DOTNET] Measuring performance

2002-04-15 Thread Mattias Konradsson
>From: "Donal Devine" <[EMAIL PROTECTED]> >Are you an administrator? Yah I am... but do I have to give some explicit rights to the component in order to let it access UserProcess, doesnt it run with administrator rights? Security isn't my forté :) Best Regards Mattias Konradsson "Reinvent

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
Are you an administrator? -Original Message- From: Mattias Konradsson [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 11:21 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Measuring performance >Hmm...I am not getting that, what platform are you using? >UserProcessTime is only suppor

Re: [DOTNET] Measuring performance

2002-04-15 Thread Mattias Konradsson
>Hmm...I am not getting that, what platform are you using? >UserProcessTime is only supported on the following platforms: >Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home >Edition, Windows XP Professional, Windows .NET Server family >Are you using the System.Diagno

Re: [DOTNET] Measuring performance

2002-04-15 Thread Donal Devine
System.Diagnostics namespace? -Original Message- From: Mattias Konradsson [mailto:[EMAIL PROTECTED]] Sent: 13 April 2002 08:33 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Measuring performance >From: "Donal Devine" <[EMAIL PROTECTED]> >TimeSpan tsStart; >TimeSpa

Re: [DOTNET] Measuring performance

2002-04-13 Thread Mattias Konradsson
>From: "Donal Devine" <[EMAIL PROTECTED]> >TimeSpan tsStart; >TimeSpan tsDuration; >GC.Collect(); >GC.WaitForPendingFinalizers(); >tsStart = Process.GetCurrentProcess().Threads[0].UserProcessorTime; >//Do stuff >tsDuration = Process.GetCurrentProcess().Threads[0].UserProcessorTime.Subtract(tsStart

Re: [DOTNET] Measuring performance

2002-04-11 Thread Donal Devine
].UserProcessorTime.Subtract(tsStart); -Original Message- From: Mads Houmann [mailto:[EMAIL PROTECTED]] Sent: 11 April 2002 19:02 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Measuring performance If you don't mind calling out to Win32 you can use the PerformanceCounter APIs like this: using System;

Re: [DOTNET] Measuring performance

2002-04-11 Thread Mads Houmann
mport("kernel32")] private static extern bool QueryPerformanceFrequency(ref long lpFrequency); } - Original Message - From: "Mattias Konradsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 5:58 AM Subject: [DOTNET] Measuring p