Add script_udpate_rate to trace

This commit is contained in:
Ryan Huffman 2016-12-29 16:48:00 -08:00
parent f2638637f7
commit e181c2a16e

View file

@ -3411,6 +3411,10 @@ void Application::idle(float nsecsElapsed) {
static std::once_flag once;
std::call_once(once, [] {
initCpuUsage();
PROFILE_COUNTER(app, "fps", { { "fps", _frameCounter.rate() } });
PROFILE_COUNTER(app, "downloads", {
{ "current", ResourceCache::getLoadingRequests().length() },
{ "pending", ResourceCache::getPendingRequestCount() }
});
vec3 kernelUserAndSystem;