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
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
>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
: [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=
>>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
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
>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
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?
>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
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
>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
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
>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
].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;
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
15 matches
Mail list logo