Changeset 2654

Show
Ignore:
Timestamp:
10/25/08 16:21:41 (17 months ago)
Author:
hagish
Message:
extended ogre stats
Location:
trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lua/gui/gui.helper.lua

    r2653 r2654  
    5151                gMemStats_NextUpdate = gMyTicks + 1000 
    5252                 
    53                 local mem_dyn = gcinfo() or 0 
     53                local mem_dyn = (collectgarbage("count") or 0) * 1024 
    5454                local b = OgreBatchCount() 
    5555                local t = OgreTriangleCount() 
     
    5757                local l = giShowLoading 
    5858                local fps = OgreAvgFPS() 
    59                  
     59         
    6060                if gConfig:Get("gLogStatsToFile") then 
    6161                        -- write to file 
    6262                        local fp = io.open("stats.dat","a") 
    6363                        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                                ) 
    6586                                fp:close() 
    6687                        end 
  • trunk/scripts/stats.gnuplot

    r2653 r2654  
    1414set lmargin 10. 
    1515 
    16 set multiplot layout 7,1 scale 0.9,1.1 
     16set multiplot layout 7,1 scale 1,1 
    1717 
    1818plot "stats.dat" using 2 with lines title "fps"