Expose this ChromeTraceUtil logging to C-API: start/statelogging and submitProfileTiming pybullet.submitProfileTiming, and STATE_LOGGING_PROFILE_TIMINGS used in startStateLogging added example for Python profileTiming.py and C++ b3RobotSimulatorClientAPI::submitProfileTiming
13 lines
231 B
Python
13 lines
231 B
Python
import pybullet as p
|
|
import time
|
|
|
|
p.connect(p.GUI)
|
|
|
|
t = time.time()+0.1
|
|
|
|
logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "haha")
|
|
while (time.time()<t):
|
|
p.submitProfileTiming("pythontest")
|
|
p.stopStateLogging(logId)
|
|
|