Fix JavaScript profiling

The FunctionCallProfiler cannot be temporary, as it should live to the
end of the scope.

Change-Id: I164d2903cc6070c56bf8fdc4c44009d6c63a870a
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Ulf Hermann 2017-10-24 10:05:04 +02:00
parent ce33c5eaba
commit 7bbce3c396
2 changed files with 2 additions and 2 deletions

View File

@ -504,7 +504,8 @@ QV4::ReturnedValue VME::exec(CallData *callData, QV4::Function *function)
ExecutionEngine *engine = function->internalClass->engine;
CHECK_STACK_LIMITS(engine);
Profiling::FunctionCallProfiler(engine, function);
Profiling::FunctionCallProfiler profiler(engine, function);
Q_UNUSED(profiler)
Value *jsStackTop = engine->jsStackTop;

View File

@ -667,7 +667,6 @@ void tst_QQmlProfilerService::signalSourceLocation()
void tst_QQmlProfilerService::javascript()
{
QSKIP("fixme - the nesting is wrong: somthing is called _from_ onWidthChanged");
QCOMPARE(connect(true, "javascript.qml"), ConnectSuccess);
m_client->sendRecordingStatus(true);