// // Created by Bradley Austin Davis on 2016/12/12 // Copyright 2013-2016 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "TestScriptingInterface.h" #include #include #include #include TestScriptingInterface* TestScriptingInterface::getInstance() { static TestScriptingInterface sharedInstance; return &sharedInstance; } void TestScriptingInterface::quit() { qApp->quit(); } void TestScriptingInterface::waitForTextureIdle() { } void TestScriptingInterface::waitForDownloadIdle() { } void TestScriptingInterface::waitIdle() { } bool TestScriptingInterface::startTracing(QString logrules) { if (!logrules.isEmpty()) { QLoggingCategory::setFilterRules(logrules); } if (!DependencyManager::isSet()) { return false; } DependencyManager::get()->startTracing(); return true; } bool TestScriptingInterface::stopTracing(QString filename) { if (!DependencyManager::isSet()) { return false; } auto tracer = DependencyManager::get(); tracer->stopTracing(); tracer->serialize(filename); return true; }