When & Who will perform profiling?
It's easier for the devs familair with the part of the code in question to do the profiling. This is because it is easier for them to instrument their code and understand what's going on.
Originally Posted by omerzia
As for when.. I think during a refactor phase in Red/Green/Red/Green cycle of a TDD/BDD process.
Red - Unit/Integration tests are written to test acceptance criteria. (unit and integration tests fail because the code isn't written yet)
Green - Code is written to accomplish the goal. (unit and integrations pass, at this point code is considered correct, but not production quality)
Red - Unit/Integrations tests are refactored to take performance requirements into account. (unit and integrations tests will now fail)
Green - Developers will profile and optimize, and refactor code to make the tests pass again. (here is usually where profiling happens)
It is important that unit test be established before the profiling and optimization. To avoid breaking the software in the process.
Last edited by dlai; 05-28-2013 at 11:51 PM.
In early phases Dev in general , and sometime test as well.
In performance testing Test do majorly.