History

added code to record total number of ATP/HTTP/File bytes downloaded during session

Update FileResourceRequest.cpp Update AssetResourceRequest.cpp Update FileResourceRequest.cpp Update HTTPResourceRequest.cpp Update AssetResourceRequest.cpp Update AssetResourceRequest.cpp Update FileResourceRequest.cpp Update AssetResourceRequest.cpp Update AssetResourceRequest.cpp Update FileResourceRequest.cpp Update FileResourceRequest.cpp Update HTTPResourceRequest.cpp Update FileResourceRequest.cpp Update FileResourceRequest.cpp Update Application.cpp Update Application.cpp

utkarshgautamnyu committed 9 years ago

Commit 6b969bc1 parent 4a35ad15 files · +23 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+8−0
@@ -1466,6 +1466,14 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1465 unmodified lines
1466 properties["atp_mapping_requests"] = atpMappingRequests;1466 properties["atp_mapping_requests"] = atpMappingRequests;
1467 1467
1468 properties["throttled"] = _displayPlugin ? _displayPlugin->isThrottled() : false;1468 properties["throttled"] = _displayPlugin ? _displayPlugin->isThrottled() : false;
1469
1470 QJsonObject bytesDownloaded;
1471 bytesDownloaded["atp"] = statTracker->getStat(STAT_ATP_RESOURCE_TOTAL_BYTES).toInt();
1472 bytesDownloaded["http"] = statTracker->getStat(STAT_HTTP_RESOURCE_TOTAL_BYTES).toInt();
1473 bytesDownloaded["file"] = statTracker->getStat(STAT_FILE_RESOURCE_TOTAL_BYTES).toInt();
1474 bytesDownloaded["total"] = bytesDownloaded["atp"].toInt() + bytesDownloaded["http"].toInt()
1475 + bytesDownloaded["file"].toInt();
1476 properties["bytesDownloaded"] = bytesDownloaded;
1469 1477
1470 auto myAvatar = getMyAvatar();1478 auto myAvatar = getMyAvatar();
1471 glm::vec3 avatarPosition = myAvatar->getPosition();1479 glm::vec3 avatarPosition = myAvatar->getPosition();