Skip to content
Snippets Groups Projects
Commit ba1d1267 authored by Alain Linden's avatar Alain Linden
Browse files
parents 0d93ce2e d0ed06ff
No related branches found
No related tags found
No related merge requests found
Showing
with 497 additions and 189 deletions
...@@ -51,3 +51,23 @@ a82e5b1e22c7f90e3c7977d146b80588f004ed0d 2.5.0-start ...@@ -51,3 +51,23 @@ a82e5b1e22c7f90e3c7977d146b80588f004ed0d 2.5.0-start
345b17e7cf630db77e840b4fe3451bd476d750a3 2.5.0-beta1 345b17e7cf630db77e840b4fe3451bd476d750a3 2.5.0-beta1
345b17e7cf630db77e840b4fe3451bd476d750a3 76f586a8e22b 345b17e7cf630db77e840b4fe3451bd476d750a3 76f586a8e22b
0000000000000000000000000000000000000000 76f586a8e22b 0000000000000000000000000000000000000000 76f586a8e22b
54d772d8687c69b1d773f6ce14bbc7bdc9d6c05f 2.5.0-beta2
7076e22f9f43f479a4ea75eac447a36364bead5a DRTVWR-5_2.2.0-beta1
9822eb3e25f7fe0c28ffd8aba45c507caa383cbc DRTVWR-3_2.2.0-beta2
b0cd7e150009809a0b5b0a9d5785cd4bb230413a DRTVWR-7_2.2.0-beta3
1415e6538d54fd5d568ee88343424d57c6803c2c DRTVWR-8_2.2.0-release
a3c12342b1af0951b8aa3b828aacef17fcea8178 DRTVWR-14_2.3.0-beta1
db0fe9bb65187f365e58a717dd23d0f4754a9c1d DRTVWR-17_2.3.0-beta2
6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 DRTVWR-20_2.3.0-beta3
6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 DRTVWR-13_2.3.0-release
3bc1f50a72e117f4d4ad8d555f0c785ea8cc201e DRTVWR-26_2.4.0-beta1
25bd6007e3d2fc15db9326ed4b18a24a5969a46a DRTVWR-27_2.4.0-beta2
1ed382c6a08ba3850b6ce9061bc551ddece0ea07 DRTVWR-25_2.4.0-release
345b17e7cf630db77e840b4fe3451bd476d750a3 DRTVWR-32_2.5.0-beta1
54d772d8687c69b1d773f6ce14bbc7bdc9d6c05f DRTVWR-33_2.5.0-beta2
b723921b5c711bd24dbe77dc76ef488b544dac78 2.5.0-beta3
b723921b5c711bd24dbe77dc76ef488b544dac78 DRTVWR-34_2.5.0-beta3
b723921b5c711bd24dbe77dc76ef488b544dac78 2.5.0-release
b723921b5c711bd24dbe77dc76ef488b544dac78 DRTVWR-31_2.5.0-release
92e58e51776a4f8c29069b1a62ff21454d2085f0 2.6.0-start
63a6aedfce785a6c760377bf685b2dae616797d2 2.5.1-start
...@@ -26,6 +26,7 @@ viewer-development.show_changes_since = last_sprint ...@@ -26,6 +26,7 @@ viewer-development.show_changes_since = last_sprint
# Build Settings # Build Settings
viewer-development_coverity.coverity_product = viewer viewer-development_coverity.coverity_product = viewer
viewer-development_coverity.run_tests = false
viewer-development.build_debug_release_separately = true viewer-development.build_debug_release_separately = true
# Notifications - to configure email notices, add a setting like this: # Notifications - to configure email notices, add a setting like this:
......
...@@ -1356,9 +1356,9 @@ ...@@ -1356,9 +1356,9 @@
<key>archive</key> <key>archive</key>
<map> <map>
<key>hash</key> <key>hash</key>
<string>039c65405b2bea7c1bf67cfeb15a67fe</string> <string>ca5765af55f798724d601720afdf6953</string>
<key>url</key> <key>url</key>
<string>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/openjpeg-1.3-windows-20101001b.tar.bz2</string> <string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-openjpeg/rev/222548/arch/CYGWIN/installer/openjpeg-1.4-windows-20110302.tar.bz2</string>
</map> </map>
<key>name</key> <key>name</key>
<string>windows</string> <string>windows</string>
......
...@@ -51,7 +51,7 @@ pre_build() ...@@ -51,7 +51,7 @@ pre_build()
{ {
local variant="$1" local variant="$1"
begin_section "Pre$variant" begin_section "Pre$variant"
"$AUTOBUILD" configure -c $variant -- -DPACKAGE:BOOL=ON -DRELEASE_CRASH_REPORTING:BOOL=ON -DUSE_PRECOMPILED_HEADERS=FALSE "$AUTOBUILD" configure -c $variant -- -DPACKAGE:BOOL=ON -DRELEASE_CRASH_REPORTING:BOOL=ON -DUSE_PRECOMPILED_HEADERS=FALSE
end_section "Pre$variant" end_section "Pre$variant"
} }
......
...@@ -66,6 +66,7 @@ Aleric Inglewood ...@@ -66,6 +66,7 @@ Aleric Inglewood
SNOW-626 SNOW-626
SNOW-756 SNOW-756
SNOW-764 SNOW-764
SNOW-800
VWR-10001 VWR-10001
VWR-10579 VWR-10579
VWR-10759 VWR-10759
...@@ -85,17 +86,21 @@ Aleric Inglewood ...@@ -85,17 +86,21 @@ Aleric Inglewood
VWR-24320 VWR-24320
VWR-24321 VWR-24321
VWR-24354 VWR-24354
VWR-24366
VWR-24519 VWR-24519
SNOW-84 SNOW-84
SNOW-477 SNOW-477
SNOW-744 SNOW-744
SNOW-766 SNOW-766
STORM-163 STORM-163
STORM-955
STORM-960
Ales Beaumont Ales Beaumont
VWR-9352 VWR-9352
SNOW-240 SNOW-240
Alexandrea Fride Alexandrea Fride
STORM-255 STORM-255
STORM-960
Alissa Sabre Alissa Sabre
VWR-81 VWR-81
VWR-83 VWR-83
...@@ -185,6 +190,7 @@ Blakar Ogre ...@@ -185,6 +190,7 @@ Blakar Ogre
blino Nakamura blino Nakamura
VWR-17 VWR-17
Boroondas Gupte Boroondas Gupte
OPEN-29
SNOW-278 SNOW-278
SNOW-503 SNOW-503
SNOW-510 SNOW-510
...@@ -373,20 +379,31 @@ JB Kraft ...@@ -373,20 +379,31 @@ JB Kraft
Joghert LeSabre Joghert LeSabre
VWR-64 VWR-64
Jonathan Yap Jonathan Yap
STORM-435
STORM-523 STORM-523
STORM-596 STORM-596
STORM-615 STORM-615
STORM-616 STORM-616
STORM-643
STORM-679 STORM-679
STORM-723 STORM-723
STORM-726 STORM-726
STORM-737 STORM-737
STORM-869
STORM-785 STORM-785
STORM-812 STORM-812
STORM-829
STORM-844
STORM-953
STORM-954
STORM-960
STORM-869
STORM-974
STORM-975
STORM-977
STORM-979
STORM-980
VWR-17801 VWR-17801
VWR-24347 VWR-24347
STORM-844
Kage Pixel Kage Pixel
VWR-11 VWR-11
Ken March Ken March
...@@ -614,6 +631,7 @@ Robin Cornelius ...@@ -614,6 +631,7 @@ Robin Cornelius
SNOW-599 SNOW-599
SNOW-747 SNOW-747
STORM-422 STORM-422
STORM-960
VWR-2488 VWR-2488
VWR-9557 VWR-9557
VWR-10579 VWR-10579
...@@ -662,6 +680,8 @@ Sergen Davies ...@@ -662,6 +680,8 @@ Sergen Davies
CT-321 CT-321
Shawn Kaufmat Shawn Kaufmat
SNOW-240 SNOW-240
Siana Gearz
STORM-960
SignpostMarv Martin SignpostMarv Martin
VWR-153 VWR-153
VWR-154 VWR-154
...@@ -769,6 +789,8 @@ Twisted Laws ...@@ -769,6 +789,8 @@ Twisted Laws
STORM-466 STORM-466
STORM-467 STORM-467
STORM-844 STORM-844
STORM-643
STORM-954
Vadim Bigbear Vadim Bigbear
VWR-2681 VWR-2681
Vector Hastings Vector Hastings
......
...@@ -72,9 +72,9 @@ if (VIEWER) ...@@ -72,9 +72,9 @@ if (VIEWER)
add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins) add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins)
# llplugin testbed code (is this the right way to include it?) # llplugin testbed code (is this the right way to include it?)
if (NOT LINUX) if (LL_TESTS AND NOT LINUX)
add_subdirectory(${VIEWER_PREFIX}test_apps/llplugintest) add_subdirectory(${VIEWER_PREFIX}test_apps/llplugintest)
endif (NOT LINUX) endif (LL_TESTS AND NOT LINUX)
if (LINUX) if (LINUX)
add_subdirectory(${VIEWER_PREFIX}linux_crash_logger) add_subdirectory(${VIEWER_PREFIX}linux_crash_logger)
......
...@@ -8,9 +8,10 @@ set(GOOGLEMOCK_INCLUDE_DIRS ...@@ -8,9 +8,10 @@ set(GOOGLEMOCK_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/include) ${LIBS_PREBUILT_DIR}/include)
if (LINUX) if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.
set(GOOGLEMOCK_LIBRARIES set(GOOGLEMOCK_LIBRARIES
gmock gmock -Wl,--no-as-needed
gtest) gtest -Wl,--as-needed)
elseif(WINDOWS) elseif(WINDOWS)
set(GOOGLEMOCK_LIBRARIES set(GOOGLEMOCK_LIBRARIES
gmock) gmock)
......
...@@ -57,11 +57,6 @@ INCLUDE(GoogleMock) ...@@ -57,11 +57,6 @@ INCLUDE(GoogleMock)
${CMAKE_SOURCE_DIR}/test/test.h ${CMAKE_SOURCE_DIR}/test/test.h
) )
# Use the default flags
if (LINUX)
SET(CMAKE_EXE_LINKER_FLAGS "")
endif (LINUX)
# start the source test executable definitions # start the source test executable definitions
SET(${project}_TEST_OUTPUT "") SET(${project}_TEST_OUTPUT "")
FOREACH (source ${sources}) FOREACH (source ${sources})
......
#!/usr/bin/python #!/usr/bin/env python
"""\ """\
@file run_build_test.py @file run_build_test.py
@author Nat Goodspeed @author Nat Goodspeed
......
#!/usr/bin/env python #!/usr/bin/env python
"""\
@file start-client.py
$LicenseInfo:firstyear=2010&license=viewerlgpl$
Second Life Viewer Source Code
Copyright (C) 2010-2011, Linden Research, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation;
version 2.1 of the License only.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
$/LicenseInfo$
"""
import sys, getopt import sys, getopt
import os import os
import llstart import llstart
......
#!/usr/bin/python #!/usr/bin/env python
"""\
@file llperformance.py
$LicenseInfo:firstyear=2010&license=viewerlgpl$
Second Life Viewer Source Code
Copyright (C) 2010-2011, Linden Research, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation;
version 2.1 of the License only.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
$/LicenseInfo$
"""
# ------------------------------------------------ # ------------------------------------------------
# Sim metrics utility functions. # Sim metrics utility functions.
......
#!/usr/bin/python #!/usr/bin/env python
"""\ """\
@file simperf_proc_interface.py @file simperf_proc_interface.py
@brief Utility to extract log messages from *.<pid>.llsd files containing performance statistics. @brief Utility to extract log messages from *.<pid>.llsd files containing performance statistics.
......
#!/usr/bin/env python #!/usr/bin/env python
# @file test_win32_manifest.py """\
# @brief Test an assembly binding version and uniqueness in a windows dll or exe. @file test_win32_manifest.py
# @brief Test an assembly binding version and uniqueness in a windows dll or exe.
# $LicenseInfo:firstyear=2009&license=viewerlgpl$
# Second Life Viewer Source Code $LicenseInfo:firstyear=2009&license=viewerlgpl$
# Copyright (C) 2010, Linden Research, Inc. Second Life Viewer Source Code
# Copyright (C) 2009-2011, Linden Research, Inc.
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public This library is free software; you can redistribute it and/or
# License as published by the Free Software Foundation; modify it under the terms of the GNU Lesser General Public
# version 2.1 of the License only. License as published by the Free Software Foundation;
# version 2.1 of the License only.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of This library is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU but WITHOUT ANY WARRANTY; without even the implied warranty of
# Lesser General Public License for more details. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software You should have received a copy of the GNU Lesser General Public
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
# $/LicenseInfo$ Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
$/LicenseInfo$
"""
import sys, os import sys, os
import tempfile import tempfile
from xml.dom.minidom import parse from xml.dom.minidom import parse
......
This diff is collapsed.
...@@ -46,10 +46,10 @@ const U32 AVATAR_TRANSACTED = 0x1 << 3; // whether avatar has actively used p ...@@ -46,10 +46,10 @@ const U32 AVATAR_TRANSACTED = 0x1 << 3; // whether avatar has actively used p
const U32 AVATAR_ONLINE = 0x1 << 4; // the online status of this avatar, if known. const U32 AVATAR_ONLINE = 0x1 << 4; // the online status of this avatar, if known.
const U32 AVATAR_AGEVERIFIED = 0x1 << 5; // whether avatar has been age-verified const U32 AVATAR_AGEVERIFIED = 0x1 << 5; // whether avatar has been age-verified
static const std::string VISIBILITY_DEFAULT("default"); char const* const VISIBILITY_DEFAULT = "default";
static const std::string VISIBILITY_HIDDEN("hidden"); char const* const VISIBILITY_HIDDEN = "hidden";
static const std::string VISIBILITY_VISIBLE("visible"); char const* const VISIBILITY_VISIBLE = "visible";
static const std::string VISIBILITY_INVISIBLE("invisible"); char const* const VISIBILITY_INVISIBLE = "invisible";
#endif #endif
...@@ -181,7 +181,7 @@ const S32 OBJECT_GROUP = 7; ...@@ -181,7 +181,7 @@ const S32 OBJECT_GROUP = 7;
const S32 OBJECT_CREATOR = 8; const S32 OBJECT_CREATOR = 8;
// llTextBox() magic token string - yes this is a hack. sue me. // llTextBox() magic token string - yes this is a hack. sue me.
const std::string TEXTBOX_MAGIC_TOKEN = "!!llTextBox!!"; char const* const TEXTBOX_MAGIC_TOKEN = "!!llTextBox!!";
// changed() event flags // changed() event flags
const U32 CHANGED_NONE = 0x0; const U32 CHANGED_NONE = 0x0;
......
...@@ -26,6 +26,12 @@ ...@@ -26,6 +26,12 @@
#include "linden_common.h" #include "linden_common.h"
#include "llmemory.h"
#if MEM_TRACK_MEM
#include "llthread.h"
#endif
#if defined(LL_WINDOWS) #if defined(LL_WINDOWS)
# include <windows.h> # include <windows.h>
# include <psapi.h> # include <psapi.h>
...@@ -37,8 +43,6 @@ ...@@ -37,8 +43,6 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#include "llmemory.h"
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
//static //static
...@@ -105,6 +109,20 @@ U64 LLMemory::getCurrentRSS() ...@@ -105,6 +109,20 @@ U64 LLMemory::getCurrentRSS()
return counters.WorkingSetSize; return counters.WorkingSetSize;
} }
//static
U32 LLMemory::getWorkingSetSize()
{
PROCESS_MEMORY_COUNTERS pmc ;
U32 ret = 0 ;
if (GetProcessMemoryInfo( GetCurrentProcess(), &pmc, sizeof(pmc)) )
{
ret = pmc.WorkingSetSize ;
}
return ret ;
}
#elif defined(LL_DARWIN) #elif defined(LL_DARWIN)
/* /*
...@@ -151,6 +169,11 @@ U64 LLMemory::getCurrentRSS() ...@@ -151,6 +169,11 @@ U64 LLMemory::getCurrentRSS()
return residentSize; return residentSize;
} }
U32 LLMemory::getWorkingSetSize()
{
return 0 ;
}
#elif defined(LL_LINUX) #elif defined(LL_LINUX)
U64 LLMemory::getCurrentRSS() U64 LLMemory::getCurrentRSS()
...@@ -185,6 +208,11 @@ U64 LLMemory::getCurrentRSS() ...@@ -185,6 +208,11 @@ U64 LLMemory::getCurrentRSS()
return rss; return rss;
} }
U32 LLMemory::getWorkingSetSize()
{
return 0 ;
}
#elif LL_SOLARIS #elif LL_SOLARIS
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
...@@ -213,6 +241,12 @@ U64 LLMemory::getCurrentRSS() ...@@ -213,6 +241,12 @@ U64 LLMemory::getCurrentRSS()
return((U64)proc_psinfo.pr_rssize * 1024); return((U64)proc_psinfo.pr_rssize * 1024);
} }
U32 LLMemory::getWorkingSetSize()
{
return 0 ;
}
#else #else
U64 LLMemory::getCurrentRSS() U64 LLMemory::getCurrentRSS()
...@@ -220,4 +254,144 @@ U64 LLMemory::getCurrentRSS() ...@@ -220,4 +254,144 @@ U64 LLMemory::getCurrentRSS()
return 0; return 0;
} }
U32 LLMemory::getWorkingSetSize()
{
return 0 ;
}
#endif #endif
//--------------------------------------------------------------------------------------------------
#if MEM_TRACK_MEM
#include "llframetimer.h"
//static
LLMemTracker* LLMemTracker::sInstance = NULL ;
LLMemTracker::LLMemTracker()
{
mLastAllocatedMem = LLMemory::getWorkingSetSize() ;
mCapacity = 128 ;
mCurIndex = 0 ;
mCounter = 0 ;
mDrawnIndex = 0 ;
mPaused = FALSE ;
mMutexp = new LLMutex(NULL) ;
mStringBuffer = new char*[128] ;
mStringBuffer[0] = new char[mCapacity * 128] ;
for(S32 i = 1 ; i < mCapacity ; i++)
{
mStringBuffer[i] = mStringBuffer[i-1] + 128 ;
}
}
LLMemTracker::~LLMemTracker()
{
delete[] mStringBuffer[0] ;
delete[] mStringBuffer;
delete mMutexp ;
}
//static
LLMemTracker* LLMemTracker::getInstance()
{
if(!sInstance)
{
sInstance = new LLMemTracker() ;
}
return sInstance ;
}
//static
void LLMemTracker::release()
{
if(sInstance)
{
delete sInstance ;
sInstance = NULL ;
}
}
//static
void LLMemTracker::track(const char* function, const int line)
{
static const S32 MIN_ALLOCATION = 0 ; //1KB
if(mPaused)
{
return ;
}
U32 allocated_mem = LLMemory::getWorkingSetSize() ;
LLMutexLock lock(mMutexp) ;
S32 delta_mem = allocated_mem - mLastAllocatedMem ;
mLastAllocatedMem = allocated_mem ;
if(delta_mem <= 0)
{
return ; //occupied memory does not grow
}
if(delta_mem < MIN_ALLOCATION)
{
return ;
}
char* buffer = mStringBuffer[mCurIndex++] ;
F32 time = (F32)LLFrameTimer::getElapsedSeconds() ;
S32 hours = (S32)(time / (60*60));
S32 mins = (S32)((time - hours*(60*60)) / 60);
S32 secs = (S32)((time - hours*(60*60) - mins*60));
strcpy(buffer, function) ;
sprintf(buffer + strlen(function), " line: %d DeltaMem: %d (bytes) Time: %d:%02d:%02d", line, delta_mem, hours,mins,secs) ;
if(mCounter < mCapacity)
{
mCounter++ ;
}
if(mCurIndex >= mCapacity)
{
mCurIndex = 0 ;
}
}
//static
void LLMemTracker::preDraw(BOOL pause)
{
mMutexp->lock() ;
mPaused = pause ;
mDrawnIndex = mCurIndex - 1;
mNumOfDrawn = 0 ;
}
//static
void LLMemTracker::postDraw()
{
mMutexp->unlock() ;
}
//static
const char* LLMemTracker::getNextLine()
{
if(mNumOfDrawn >= mCounter)
{
return NULL ;
}
mNumOfDrawn++;
if(mDrawnIndex < 0)
{
mDrawnIndex = mCapacity - 1 ;
}
return mStringBuffer[mDrawnIndex--] ;
}
#endif //MEM_TRACK_MEM
//--------------------------------------------------------------------------------------------------
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#ifndef LLMEMORY_H #ifndef LLMEMORY_H
#define LLMEMORY_H #define LLMEMORY_H
#include "llmemtype.h"
extern S32 gTotalDAlloc; extern S32 gTotalDAlloc;
extern S32 gTotalDAUse; extern S32 gTotalDAUse;
...@@ -44,10 +44,55 @@ class LL_COMMON_API LLMemory ...@@ -44,10 +44,55 @@ class LL_COMMON_API LLMemory
// Return the resident set size of the current process, in bytes. // Return the resident set size of the current process, in bytes.
// Return value is zero if not known. // Return value is zero if not known.
static U64 getCurrentRSS(); static U64 getCurrentRSS();
static U32 getWorkingSetSize();
private: private:
static char* reserveMem; static char* reserveMem;
}; };
//----------------------------------------------------------------------------
#if MEM_TRACK_MEM
class LLMutex ;
class LL_COMMON_API LLMemTracker
{
private:
LLMemTracker() ;
~LLMemTracker() ;
public:
static void release() ;
static LLMemTracker* getInstance() ;
void track(const char* function, const int line) ;
void preDraw(BOOL pause) ;
void postDraw() ;
const char* getNextLine() ;
private:
static LLMemTracker* sInstance ;
char** mStringBuffer ;
S32 mCapacity ;
U32 mLastAllocatedMem ;
S32 mCurIndex ;
S32 mCounter;
S32 mDrawnIndex;
S32 mNumOfDrawn;
BOOL mPaused;
LLMutex* mMutexp ;
};
#define MEM_TRACK_RELEASE LLMemTracker::release() ;
#define MEM_TRACK LLMemTracker::getInstance()->track(__FUNCTION__, __LINE__) ;
#else // MEM_TRACK_MEM
#define MEM_TRACK_RELEASE
#define MEM_TRACK
#endif // MEM_TRACK_MEM
//----------------------------------------------------------------------------
// LLRefCount moved to llrefcount.h // LLRefCount moved to llrefcount.h
// LLPointer moved to llpointer.h // LLPointer moved to llpointer.h
......
...@@ -229,3 +229,4 @@ char const * LLMemType::getNameFromID(S32 id) ...@@ -229,3 +229,4 @@ char const * LLMemType::getNameFromID(S32 id)
return DeclareMemType::mNameList[id]; return DeclareMemType::mNameList[id];
} }
//--------------------------------------------------------------------------------------------------
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#ifndef LL_METRICPERFORMANCETESTER_H #ifndef LL_METRICPERFORMANCETESTER_H
#define LL_METRICPERFORMANCETESTER_H #define LL_METRICPERFORMANCETESTER_H
const std::string DEFAULT_METRIC_NAME("metric"); char const* const DEFAULT_METRIC_NAME = "metric";
/** /**
* @class LLMetricPerformanceTesterBasic * @class LLMetricPerformanceTesterBasic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment