Comments
Sort by recent activity
I don't think you read my message.
I ran the application for 10-15 seconds and it reported Main() taking 262 seconds.
I ran it for one second and it reported Main() taking 40 seconds.
How do you explain this? / comments
I don't think you read my message.
I ran the application for 10-15 seconds and it reported Main() taking 262 seconds.
I ran it for one second and it reported Main() taking 40 seconds.
How do you ex...
Right, but the time spent waiting for messages doesn't occur within the body of Main(). As you said, it occurs within WaitMessage(), which is probably called by Application.Run() (directly or indirectly).
Thus, I would expect the time spent waiting to show up in the time with children and not in the time excluding children.
The time excluding children for Main(), I think, should be almost nothing. It allocates an object and calls Run(). The rest of the time is spent there, inside Run() -- inside a child of Main().
So I'm not sure why the time is showing up in Main() (excluding children).
But please read my previous message and don't just reply to this one. (The message about it showing 40 seconds when I ran the application for one second.) That's the bigger issue here. / comments
Right, but the time spent waiting for messages doesn't occur within the body of Main(). As you said, it occurs within WaitMessage(), which is probably called by Application.Run() (directly or indir...
This topic has been superceded by the following two topics:
* Total seconds counts are wrong
* Time excluding children seems wrong
Go there for the continuation of this discussion. / comments
This topic has been superceded by the following two topics:
* Total seconds counts are wrong
* Time excluding children seems wrong
Go there for the continuation of this discussion.
More evidence that the timings are off, taken from the screenshot in the profiler's own help file. (The same screenshot I mentioned above.)
The time for Main() (excluding children) was listed as 70+ seconds.
Main() contains only the following code:
Application.Run(new Form1());
That took 70+ seconds, excluding children?? / comments
More evidence that the timings are off, taken from the screenshot in the profiler's own help file. (The same screenshot I mentioned above.)
The time for Main() (excluding children) was listed as 70...