Skip to content

Commit

Permalink
Change profiling output file extension to CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuprynowicz committed Aug 12, 2023
1 parent a84c68f commit db1680c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/script-engine/src/v8/ScriptEngineV8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ int getTotalNodeHitCount(const v8::CpuProfileNode *node) {
}

QString getLogFileName() {
static const QString FILENAME_FORMAT = "overte-profile_%1.txt";
static const QString FILENAME_FORMAT = "overte-profile_%1.csv";
static const QString DATETIME_FORMAT = "yyyy-MM-dd_hh.mm.ss";
static const QString LOGS_DIRECTORY = "Logs";

Expand All @@ -1491,9 +1491,6 @@ QString getLogFileName() {
}

void ScriptEngineV8::stopProfilingAndSave() {
// the following will produce 11/18 13:55:36
const QString DATE_STRING_FORMAT = "MM/dd hh:mm:ss";

if (!_profiler || !_profilerId) {
qWarning(scriptengine_v8) << "ScriptEngineV8::stopProfilingAndSave: Profiler is not running";
return;
Expand Down

0 comments on commit db1680c

Please sign in to comment.