improved for inserting profile timings from Python, to analyzer performance of pybullet programs.

See examples/pybullet/examples/profileTiming.py for an example. Note that python and c++ is properly interleaved.
Open a timings with a name, close the timing without a name. Note that timings can be recursive, added/popped as a stack.
This commit is contained in:
Erwin Coumans
2019-08-01 19:12:16 -07:00
parent 397767cb60
commit 7263439c4b
6 changed files with 63 additions and 50 deletions

View File

@@ -627,6 +627,7 @@ struct b3Profile
{
char m_name[MAX_FILENAME_LENGTH];
int m_durationInMicroSeconds;
int m_type;
};
struct SdfLoadedArgs