Home > Net >  Vs.net have a plug-in can be in a single step when debugging or other way show lines of code executi
Vs.net have a plug-in can be in a single step when debugging or other way show lines of code executi

Time:04-13

Program requirements for performance,
Step through look at the time spent on those statements, don't know is there any way to know for intuitive those statements/method performs spend how much time??

In addition to ask, GC have an impact on the program execution time? I am now
Under normal circumstances a signature algorithm down probably around 5 ms, but when the continuous testing found that, sometimes up to tens of milliseconds (the same input/output) suspected to be connected with GC, don't know how to troubleshoot,,

CodePudding user response:

Visual Studio 2015 default can show time,

CodePudding user response:

Where show? As I set wrong? I am a vs 2019, is accurate to the lines of code? Or accurate to function?

CodePudding user response:

Is what your blog is the first thing is learn garden, "from ace has sent you a GC, blog garden is a typical fool is limping first, then turn to sell,

I want to ask is, the gc tube? Gc tube, so, you say I think tens of milliseconds slower, you'll go to blame memory? Because more memory, so the CPU is slow?
What is this logic, fool is clearly limping, then turn recursively
?
Is slow because the CPU scheduling is slow, you said right signature algorithm, we say it is need to calculate, the CPU is over, you slowly is a CPU is slower, not memory is slow, why CPU scheduling is slow, it is because you need to perform more things and CPU using time slice scheduling polling, when you add more things and a few nanoseconds, he can only this that do a few nanoseconds,

So you want to fast, don't tube, please see your how many concurrent threads, rather than look for the gc pot back

CodePudding user response:

By the way, blog long throw POTS to gc, throw it to the memory, throw it to the string, if the problem is out of memory, memory blows out, you can go to gc
Other things, look for the other problems,
A lot of articles, I slowly, Microsoft's fault, the fault of gc, of a dump, play a windbg, seemingly expert analysis, the analysis to the results that you look at the string accounted for 200 m is his, is his

We say this is as a result, not reason, is the real reason, you slowly, so your method or thread didn't quit, piling up in there, so that the string is still in use, so the gc has not yet been released to you, this is the result of the slow you, not because the string accumulation caused you slow, the pan gc and string should not be back

CodePudding user response:

As to effect the performance of the program memory, the memory part of IO, large memory benefits are allowed to put more data in the memory, it is faster than the disk IO
1. When unable to allocate memory (in most cases to not out of memory, but a fragmented and cannot allocate contiguous) you need to be abnormal, this has nothing to do with slow, or created program the overall collapse, cause the service failure, cause other problems of the service,
2. When insufficient physical memory, the system will put the data into the virtual memory, this kind of circumstance to say cause you slowly, because the problems under the virtual disk, disk IO is slower than the physical memory, but the system is not enough physical memory you would do it, so the problem back to the original, the circumstances under which we will use the physical memory must use virtual memory? Or because of slow ah
  •  Tags:  
  • C#
  • Related