Changeset 2654
- Timestamp:
- 10/25/08 16:21:41 (17 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
-
lua/gui/gui.helper.lua (modified) (2 diffs)
-
scripts/stats.gnuplot (modified) (1 diff)
-
scripts/stats_ogre.gnuplot (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lua/gui/gui.helper.lua
r2653 r2654 51 51 gMemStats_NextUpdate = gMyTicks + 1000 52 52 53 local mem_dyn = gcinfo() or 053 local mem_dyn = (collectgarbage("count") or 0) * 1024 54 54 local b = OgreBatchCount() 55 55 local t = OgreTriangleCount() … … 57 57 local l = giShowLoading 58 58 local fps = OgreAvgFPS() 59 59 60 60 if gConfig:Get("gLogStatsToFile") then 61 61 -- write to file 62 62 local fp = io.open("stats.dat","a") 63 63 if (fp) then 64 fp:write(gMyTicks.."\t"..fps.."\t"..b.."\t"..t.."\t"..memoryusage.."\t"..mem_dyn.."\t"..j.."\t"..l.."\n") 64 fp:write( 65 -- 0 66 gMyTicks.."\t".. 67 fps.."\t".. 68 b.."\t".. 69 t.."\t".. 70 memoryusage.."\t".. 71 -- 5 72 mem_dyn.."\t".. 73 j.."\t".. 74 l.."\t".. 75 OgreMemoryUsage("compositor").."\t".. 76 OgreMemoryUsage("font").."\t".. 77 -- 10 78 OgreMemoryUsage("gpuprogram").."\t".. 79 OgreMemoryUsage("highlevelgpuprogram").."\t".. 80 OgreMemoryUsage("material").."\t".. 81 OgreMemoryUsage("mesh").."\t".. 82 OgreMemoryUsage("skeleton").."\t".. 83 -- 15 84 OgreMemoryUsage("texture").."\n" 85 ) 65 86 fp:close() 66 87 end -
trunk/scripts/stats.gnuplot
r2653 r2654 14 14 set lmargin 10. 15 15 16 set multiplot layout 7,1 scale 0.9,1.116 set multiplot layout 7,1 scale 1,1 17 17 18 18 plot "stats.dat" using 2 with lines title "fps"
