diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llviewerstats.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerstats.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewerstats.cpp b/linden/indra/newview/llviewerstats.cpp index 0b4c0f3..648fbd4 100644 --- a/linden/indra/newview/llviewerstats.cpp +++ b/linden/indra/newview/llviewerstats.cpp | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -58,6 +59,7 @@ | |||
58 | #include "llviewerwindow.h" // *TODO: remove, only used for width/height | 59 | #include "llviewerwindow.h" // *TODO: remove, only used for width/height |
59 | #include "llworld.h" | 60 | #include "llworld.h" |
60 | #include "llfeaturemanager.h" | 61 | #include "llfeaturemanager.h" |
62 | #include "llviewernetwork.h" | ||
61 | #if LL_LCD_COMPILE | 63 | #if LL_LCD_COMPILE |
62 | #include "lllcd.h" | 64 | #include "lllcd.h" |
63 | #endif | 65 | #endif |
@@ -349,7 +351,6 @@ void LLViewerStats::addToMessage(LLSD &body) const | |||
349 | // Moving them here, but not merging them into LLViewerStats yet. | 351 | // Moving them here, but not merging them into LLViewerStats yet. |
350 | void reset_statistics() | 352 | void reset_statistics() |
351 | { | 353 | { |
352 | gPipeline.resetFrameStats(); // Reset per-frame statistics. | ||
353 | if (LLSurface::sTextureUpdateTime) | 354 | if (LLSurface::sTextureUpdateTime) |
354 | { | 355 | { |
355 | LLSurface::sTexelsUpdatedPerSecStat.addValue(0.001f*(LLSurface::sTexelsUpdated / LLSurface::sTextureUpdateTime)); | 356 | LLSurface::sTexelsUpdatedPerSecStat.addValue(0.001f*(LLSurface::sTexelsUpdated / LLSurface::sTextureUpdateTime)); |
@@ -659,7 +660,7 @@ void send_stats() | |||
659 | time(<ime); | 660 | time(<ime); |
660 | F32 run_time = F32(LLFrameTimer::getElapsedSeconds()); | 661 | F32 run_time = F32(LLFrameTimer::getElapsedSeconds()); |
661 | 662 | ||
662 | agent["start_time"] = ltime - run_time; | 663 | agent["start_time"] = S32(ltime - S32(run_time)); |
663 | 664 | ||
664 | // The first stat set must have a 0 run time if it doesn't actually | 665 | // The first stat set must have a 0 run time if it doesn't actually |
665 | // contain useful data in terms of FPS, etc. We use half the | 666 | // contain useful data in terms of FPS, etc. We use half the |
@@ -698,7 +699,11 @@ void send_stats() | |||
698 | system["ram"] = (S32) gSysMemory.getPhysicalMemoryKB(); | 699 | system["ram"] = (S32) gSysMemory.getPhysicalMemoryKB(); |
699 | system["os"] = LLAppViewer::instance()->getOSInfo().getOSStringSimple(); | 700 | system["os"] = LLAppViewer::instance()->getOSInfo().getOSStringSimple(); |
700 | system["cpu"] = gSysCPU.getCPUString(); | 701 | system["cpu"] = gSysCPU.getCPUString(); |
701 | 702 | std::string macAddressString = llformat("%02x-%02x-%02x-%02x-%02x-%02x", | |
703 | gMACAddress[0],gMACAddress[1],gMACAddress[2], | ||
704 | gMACAddress[3],gMACAddress[4],gMACAddress[5]); | ||
705 | system["mac_address"] = macAddressString; | ||
706 | system["serial_number"] = LLAppViewer::instance()->getSerialNumber(); | ||
702 | std::string gpu_desc = llformat( | 707 | std::string gpu_desc = llformat( |
703 | "%-6s Class %d ", | 708 | "%-6s Class %d ", |
704 | gGLManager.mGLVendorShort.substr(0,6).c_str(), | 709 | gGLManager.mGLVendorShort.substr(0,6).c_str(), |