Forum C# How to profile server code?

How to profile server code?

Postby wildbunny » August 11th, 2011, 4:32 pm

Hi guys,

How are you profiling server side code?

I've found that using DateTime.Now as the timer is only accurate to 15ms, which is totally useless, and Environment.Ticks is not on the whitelist...

Furthermore, running the server .exe through a profiler throws up a load of disallowed class messages...

What do you guys do?

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: How to profile server code?

Postby Oliver » August 11th, 2011, 7:45 pm

Uhm... we´ve never done it. That´s how.

If you run it through a profiler... can´t you limit it to just your namespace?

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: How to profile server code?

Postby wildbunny » August 11th, 2011, 8:49 pm

Oliver wrote:Uhm... we´ve never done it. That´s how.

If you run it through a profiler... can´t you limit it to just your namespace?

- Oliver


The profiler I'm using causes code to be inserted into the game .dll which then causes the server .exe to throw disallowed class messages...
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: How to profile server code?

Postby Oliver » August 28th, 2011, 12:38 am

oh... I´ve added a small note to our todolist about adding the ability of disabling code scanning by adding a special value in app.config; so in the future you´ll be able to workaround this.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: How to profile server code?

Postby wildbunny » August 28th, 2011, 11:01 am

Oliver wrote:oh... I´ve added a small note to our todolist about adding the ability of disabling code scanning by adding a special value in app.config; so in the future you´ll be able to workaround this.

- Oliver


Hey, great! Thanks :)
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am


Return to C#