summaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-main.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-16 12:41:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-13 07:04:00 -0500
commitbf7954ebe7fa7c1f9c7ca77655f35500ffb057fb (patch)
treecbcd6a95e9a5bcc27adf44bc6b39eecc5ad0ae27 /subsurface-mobile-main.cpp
parenta96be9af689734dbe6d56a28f95a761b5c456e7d (diff)
downloadsubsurface-bf7954ebe7fa7c1f9c7ca77655f35500ffb057fb.tar.gz
core: remove LOG_STP from mobile
LOG_STP is on longer providing the data needed, since a lot of the startup is indirectly in QML, furthermore using the xcode project and running profiler gives much more detailed information Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'subsurface-mobile-main.cpp')
-rw-r--r--subsurface-mobile-main.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp
index b75c63406..ef6913d8f 100644
--- a/subsurface-mobile-main.cpp
+++ b/subsurface-mobile-main.cpp
@@ -23,47 +23,15 @@
// Implementation of STP logging
#include "core/ssrf.h"
-#ifdef ENABLE_STARTUP_TIMING
-#include <QElapsedTimer>
-#include <QMutex>
-#include <QMutexLocker>
-void log_stp(const char *ident, QString *buf)
-{
- static bool firstCall = true;
- static QElapsedTimer stpDuration;
- static QString stpText;
- static QMutex logMutex;
-
- QMutexLocker l(&logMutex);
-
- if (firstCall) {
- firstCall = false;
- stpDuration.start();
- }
- if (ident)
- stpText += QString("STP ")
- .append(QString::number(stpDuration.elapsed()))
- .append(" ms, ")
- .append(ident)
- .append("\n");
- if (buf) {
- *buf += "---------- startup timer ----------\n";
- *buf += stpText;
- }
-}
-#endif // ENABLE_STARTUP_TIMING
int main(int argc, char **argv)
{
- LOG_STP("main starting");
-
int i;
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
// Start application
std::unique_ptr<QApplication> app(new QApplication(argc, argv));
- LOG_STP("main Qt started");
// and get comand line arguments
QStringList arguments = QCoreApplication::arguments();
@@ -78,7 +46,6 @@ int main(int argc, char **argv)
}
}
git_libgit2_init();
- LOG_STP("main git loaded");
setup_system_prefs();
if (QLocale().measurementSystem() == QLocale::MetricSystem)
default_prefs.units = SI_units;
@@ -88,11 +55,8 @@ int main(int argc, char **argv)
fill_computer_list();
parse_xml_init();
- LOG_STP("main xml parsed");
taglist_init_global();
- LOG_STP("main taglist done");
init_ui();
- LOG_STP("main init_ui done");
if (prefs.default_file_behavior == LOCAL_DEFAULT_FILE)
set_filename(prefs.default_filename);
else
@@ -106,7 +70,6 @@ int main(int argc, char **argv)
init_proxy();
- LOG_STP("main call run_ui (continue in qmlmanager)");
if (!quit)
run_ui();
exit_ui();