Skip to content

Instantly share code, notes, and snippets.

@perky
Created May 30, 2012 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perky/2838786 to your computer and use it in GitHub Desktop.
Save perky/2838786 to your computer and use it in GitHub Desktop.
An example of a report generated by ProFi.lua
Total Time: 0.417766
| FILE : FUNCTION : LINE : TIME : RELATIVE : CALLED |
| ./FEZ/src/ControllerManager.lua : update : 0172 : 0.418 : 99.99% : 0000001 |
| ./FEZ/src/ControllerManager.lua : updateEntities : 0176 : 0.418 : 99.98% : 0000001 |
| controllers/FogOfWarController.lua : updateEntity : 0039 : 0.400 : 95.85% : 0001044 |
| ./FEZ/src/ComponentCache.lua : _fogOfWar : 0010 : 0.228 : 54.62% : 0001284 |
| controllers/FogOfWarController.lua : updateEntityFogPARTIAL : 0056 : 0.153 : 36.67% : 0001044 |
| ./FEZ/src/EntityManager.lua : assert_entity_has_componentType : 0095 : 0.138 : 33.11% : 0001406 |
| ./FEZ/src/EntityManager.lua : assert_entity_exists : 0100 : 0.098 : 23.57% : 0001646 |
| ./FEZ/src/ComponentCache.lua : _systemObject : 0010 : 0.050 : 12.03% : 0000240 |
| ./FEZ/src/ComponentCache.lua : _systemData : 0010 : 0.023 : 5.49% : 0000100 |
| ./FEZ/src/EntityManager.lua : getEntityName : 0159 : 0.022 : 5.33% : 0003052 |
| ./FEZ/src/util/bag.lua : get : 0021 : 0.022 : 5.22% : 0003052 |
| ./FEZ/src/EntityManager.lua : entityHasName : 0155 : 0.015 : 3.59% : 0001988 |
| ./FEZ/src/EntityManager.lua : entityExists : 0083 : 0.014 : 3.29% : 0001646 |
| ./FEZ/src/util/bag.lua : getComponentFromEntity : 0021 : 0.011 : 2.54% : 0001406 |
| ./FEZ/src/util/bag.lua : contains : 0025 : 0.010 : 2.44% : 0001406 |
| controllers/FogOfWarController.lua : systemHasFriendlyPrograms : 0096 : 0.009 : 2.24% : 0000100 |
| ./FEZ/src/ComponentCache.lua : _team : 0010 : 0.005 : 1.20% : 0000044 |
| attributes/SystemObject.lua : getSystemEntity : 0012 : 0.002 : 0.40% : 0000240 |
| ./FEZ/src/util/bag.lua : entityHasComponent : 0025 : 0.002 : 0.40% : 0000240 |
| attributes/Team.lua : getLocalTeam : 0016 : 0.000 : 0.04% : 0000022 |
| attributes/Team.lua : getTeam : 0016 : 0.000 : 0.03% : 0000022 |
| libs/ProFi.lua : shouldReturn : 0122 : 0.000 : 0.00% : 0000001 |
| controllers/PlayerController.lua : getLocalTeam : 0079 : 0.000 : 0.00% : 0000022 |
| libs/ProFi.lua : stop : 0052 : 0.000 : 0.00% : 0000001 |
| ./FEZ/src/EntityManager.lua : entityHasComponent : 0142 : 0.000 : 0.00% : 0000240 |
| libs/ProFi.lua : startHooks : 0157 : 0.000 : 0.00% : 0000000 |
| [C] : tostring : -001 : 0.000 : 0.00% : 0002812 |
| [C] : ipairs : -001 : 0.000 : 0.00% : 0000101 |
| [C] : (for generator) : -001 : 0.000 : 0.00% : 0001165 |
| libs/ProFi.lua : start : 0035 : 0.000 : 0.00% : 0000000 |
| [C] : getTime : -001 : 0.000 : 0.00% : 0000002 |
| ./FEZ/src/Component.lua : tostring : 0054 : 0.000 : 0.00% : 0001406 |
| ./FEZ/src/EntityManager.lua : getComponentFromEntity : 0120 : 0.000 : 0.00% : 0001406 |
| [C] : entityToString : -001 : 0.000 : 0.00% : 0003052 |
| ./FEZ/src/EntityManager.lua : entityToString : 0170 : 0.000 : 0.00% : 0003052 |
| libs/ProFi.lua : stopHooks : 0161 : 0.000 : 0.00% : 0000001 |
| [C] : assert : -001 : 0.000 : 0.00% : 0003052 |
| [C] : sethook : -001 : 0.000 : 0.00% : 0000001 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment