History

Change profiling output file extension to CSV

Karol Suprynowicz committed 3 years ago

Commit db1680c1 parent a84c68f1 file · +1 −4Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptEngineV8.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptEngineV8.cpp+1−4
@@ -1479,7 +1479,7 @@ int getTotalNodeHitCount(const v8::CpuProfileNode *node) { · 1478 unmodified lines
1479}1479}
1480 1480
1481QString getLogFileName() {1481QString getLogFileName() {
1482 static const QString FILENAME_FORMAT = "overte-profile_%1.txt";1482 static const QString FILENAME_FORMAT = "overte-profile_%1.csv";
1483 static const QString DATETIME_FORMAT = "yyyy-MM-dd_hh.mm.ss";1483 static const QString DATETIME_FORMAT = "yyyy-MM-dd_hh.mm.ss";
1484 static const QString LOGS_DIRECTORY = "Logs";1484 static const QString LOGS_DIRECTORY = "Logs";
1485 1485
@@ -1491,9 +1491,6 @@ QString getLogFileName() { · 5 unmodified lines
1491}1491}
1492 1492
1493void ScriptEngineV8::stopProfilingAndSave() {1493void ScriptEngineV8::stopProfilingAndSave() {
1494 // the following will produce 11/18 13:55:36
1495 const QString DATE_STRING_FORMAT = "MM/dd hh:mm:ss";
1496
1497 if (!_profiler || !_profilerId) {1494 if (!_profiler || !_profilerId) {
1498 qWarning(scriptengine_v8) << "ScriptEngineV8::stopProfilingAndSave: Profiler is not running";1495 qWarning(scriptengine_v8) << "ScriptEngineV8::stopProfilingAndSave: Profiler is not running";
1499 return;1496 return;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t