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:
parent
ce33c5eaba
commit
7bbce3c396
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue