ID:179566
 
I have no idea what any of he things that were in the browser when i profiled my world
These are the things i got
/mob/proc/randomencounter10.220 0.220 0.220 1
/mob/proc/endbattle 0.160 0.160 0.160 1
/mob/monster/proc/walkingpattern 0.120 1.620 0.000 15
/mob/proc/npcattack1 0.060 0.120 15.710 2
/mob/Move 0.000 0.220 16.110 154
/mob/proc/maincombat 0.000 0.280 25.600 4
/mob/proc/attack 0.000 0.280 20.210 4
/mob/proc/normaldamage 0.000 0.220 9.660 3
/mob/proc/npcdeathcheck 0.000 0.220 8.190 3
/mob/proc/checklevel 0.000 0.000 0.000 1
/mob/slime/Click 0.000 0.220 14.940 2
/mob/Stat 0.000 0.000 0.000 38
/area/b1/Enter 0.000 0.000 0.000 1
Can some one tell me this stuff means please
Thanx
You didn't show the appropriate column headers.


Self CPU Time: The amount of CPU time that a single run of this proc has taken since the world has started.

Total CPU Time: The total amount of CPU time that this proc has taken up since the world has started.

Real Time: How much actual time it has taken to process this proc since the world has started.


The average option will display how much time the proc has taken each and every time it is executed, rather than over the entire time since the world started.
In response to Spuzzum
Spuzzum wrote:
Self CPU Time: The amount of CPU time that a single run of this proc has taken since the world has started.

I believe that's incorrect. If this applied to a single run only, it would have much smaller values. I believe self CPU time actually refers to time spent within the proc itself, and not within any other procs that it calls. This time is the total over all runs of the proc. (Dantom can correct me on this if I'm mistaken.)

I'd personally find per-run averages much more useful, even though you can calculate them easily enough by taking each column and dividing by the number of calls.

Lummox JR
In response to Lummox JR
Oh, right! Ignore everything I said.

In case you can't tell, I haven't used it much. =P
In response to Spuzzum
Spuzzum wrote:
Oh, right! Ignore everything I said.

In case you can't tell, I haven't used it much. =P

I used profiling in my last project (that I set aside) because there were a lot of complex procs involved. One of the most complex of these was one to figure out which of a bunch of interconnected objects were movable without breaking the structure into two pieces--a much more complex task than it sounds at first, which required me to modify the proc about a million times before I figured out the right algorithm. Several utility procs supported this, and were called often. Profiling was very helpful in making the code more efficient.

Lummox JR