Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions indra/cmake/LLAddBuildTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ MACRO(LL_ADD_PROJECT_UNIT_TESTS project sources)
)
endif(DARWIN)

target_precompile_headers(PROJECT_${project}_TEST_${name} REUSE_FROM llprecompiled_exe)

#
# Per-codefile additional / external project dep and lib dep property extraction
#
Expand Down Expand Up @@ -246,7 +244,6 @@ FUNCTION(LL_ADD_INTEGRATION_TEST

target_link_libraries(INTEGRATION_TEST_${testname} ${libraries})
target_include_directories (INTEGRATION_TEST_${testname} PRIVATE ${INDRA_SOURCE_DIR}/test ${INDRA_SOURCE_DIR}/llmath ${INDRA_SOURCE_DIR}/llui)
target_precompile_headers(INTEGRATION_TEST_${testname} REUSE_FROM llprecompiled_exe)

# Create the test running command
set(test_command ${ARGN})
Expand Down
100 changes: 0 additions & 100 deletions indra/integration_tests/llimage_libtest/llimage_libtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ static const char USAGE[] = "\n"
" Only valid for output j2c images.\n"
" -f, --filter <file>\n"
" Apply the filter <file> to the input images.\n"
" -log, --logmetrics <metric>\n"
" Log performance data for <metric>. Results in <metric>.slp\n"
" Note: so far, only ImageCompressionTester has been tested.\n"
" -a, --analyzeperformance\n"
" Create a report comparing <metric>_baseline.slp with current <metric>.slp\n"
" Results in <metric>_report.csv\n"
" -s, --image-stats\n"
" Output stats for each input and output image.\n"
"\n";
Expand Down Expand Up @@ -316,34 +310,6 @@ void store_output_file(std::list<std::string> &output_filenames, std::list<std::
}
}

// Holds the metric gathering output in a thread safe way
class LogThread : public LLThread
{
public:
std::string mFile;

LogThread(std::string& test_name) : LLThread("llimage_libtest log")
{
std::string file_name = test_name + std::string(".slp");
mFile = file_name;
}

void run()
{
llofstream os(mFile.c_str());

while (!sAllDone)
{
LLFastTimer::writeLog(os);
os.flush();
ms_sleep(32);
}
LLFastTimer::writeLog(os);
os.flush();
os.close();
}
};

int main(int argc, char** argv)
{
// Call Tracy first thing to have it allocate memory
Expand All @@ -355,7 +321,6 @@ int main(int argc, char** argv)
std::list<std::string> input_filenames;
std::list<std::string> output_filenames;
// Other optional parsed arguments
bool analyze_performance = false;
bool image_stats = false;
int* region = NULL;
int discard_level = -1;
Expand All @@ -369,7 +334,6 @@ int main(int argc, char** argv)
// Init whatever is necessary
ll_init_apr();
LLImage::initClass();
LogThread* fast_timer_log_thread = NULL; // For performance and metric gathering

// Analyze command line arguments
for (int arg = 1; arg < argc; ++arg)
Expand Down Expand Up @@ -515,29 +479,6 @@ int main(int argc, char** argv)
{
reversible = true;
}
else if (!strcmp(argv[arg], "--logmetrics") || !strcmp(argv[arg], "-log"))
{
// '--logmetrics' needs to be specified with a named test metric argument
// Note: for the moment, only ImageCompressionTester has been tested
std::string test_name;
if ((arg + 1) < argc)
{
test_name = argv[arg+1];
}
if (((arg + 1) >= argc) || (test_name[0] == '-'))
{
// We don't have an argument left in the arg list or the next argument is another option
std::cout << "No --logmetrics argument given, no perf data will be gathered" << std::endl;
}
else
{
LLFastTimer::sMetricLog = true;
LLFastTimer::sLogName = test_name;
arg += 1; // Skip that arg now we know it's a valid test name
if ((arg + 1) == argc) // Break out of the loop if we reach the end of the arg list
break;
}
}
else if (!strcmp(argv[arg], "--filter") || !strcmp(argv[arg], "-f"))
{
// '--filter' needs to be specified with a named filter argument
Expand All @@ -557,10 +498,6 @@ int main(int argc, char** argv)
break;
}
}
else if (!strcmp(argv[arg], "--analyzeperformance") || !strcmp(argv[arg], "-a"))
{
analyze_performance = true;
}
else if (!strcmp(argv[arg], "--image-stats") || !strcmp(argv[arg], "-s"))
{
image_stats = true;
Expand All @@ -573,20 +510,6 @@ int main(int argc, char** argv)
std::cout << "No input file, nothing to do -> exit" << std::endl;
return 0;
}
if (analyze_performance && !LLFastTimer::sMetricLog)
{
std::cout << "Cannot create perf report if no perf gathered (i.e. use argument -log <perf> with -a) -> exit" << std::endl;
return 0;
}


// Create the logging thread if required
if (LLTrace::BlockTimer::sMetricLog)
{
LLTrace::BlockTimer::setLogLock(new LLMutex());
fast_timer_log_thread = new LogThread(LLTrace::BlockTimer::sLogName);
fast_timer_log_thread->start();
}

// Load the filter once and for all
LLImageFilter filter(filter_name);
Expand Down Expand Up @@ -623,31 +546,8 @@ int main(int argc, char** argv)
}
}

// Output perf data if requested by user
if (analyze_performance)
{
std::string baseline_name = LLTrace::BlockTimer::sLogName + "_baseline.slp";
std::string current_name = LLTrace::BlockTimer::sLogName + ".slp";
std::string report_name = LLTrace::BlockTimer::sLogName + "_report.csv";

std::cout << "Analyzing performance, check report in : " << report_name << std::endl;

LLMetricPerformanceTesterBasic::doAnalysisMetrics(baseline_name, current_name, report_name);
}

// Stop the perf gathering system if needed
if (LLTrace::BlockTimer::sMetricLog)
{
LLMetricPerformanceTesterBasic::deleteTester(LLTrace::BlockTimer::sLogName);
sAllDone = true;
}

// Cleanup and exit
SUBSYSTEM_CLEANUP(LLImage);
if (fast_timer_log_thread)
{
fast_timer_log_thread->shutdown();
}

return 0;
}
2 changes: 1 addition & 1 deletion indra/llappearance/llavatarappearance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ void LLAvatarAppearance::buildCharacter()

bool LLAvatarAppearance::loadAvatar()
{
// LL_RECORD_BLOCK_TIME(FTM_LOAD_AVATAR);
LL_PROFILE_ZONE_SCOPED_CATEGORY_AVATAR;

// avatar_skeleton.xml
if( !buildSkeleton(sAvatarSkeletonInfo) )
Expand Down
4 changes: 4 additions & 0 deletions indra/llappearance/llwearabletype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ LLWearableType::~LLWearableType()
{
}

void LLWearableType::initSingleton()
{
}

LLWearableType::EType LLWearableType::typeNameToType(const std::string& type_name)
{
const LLWearableType::EType wearable = mDictionary.lookup(type_name);
Expand Down
8 changes: 4 additions & 4 deletions indra/llappearance/llwearabletype.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
#include "llsingleton.h"
#include "llinvtranslationbrdg.h"

class LLWearableType : public LLSimpleton<LLWearableType>
class LLWearableType : public LLParamSingleton<LLWearableType>
{
public:
LLWearableType(LLTranslationBridge::ptr_t &trans);
LLSINGLETON(LLWearableType, LLTranslationBridge::ptr_t &trans);
~LLWearableType();

void initSingleton() override;
public:
enum EType
{
WT_SHAPE = 0,
Expand Down
Loading
Loading