};
struct QQmlHandlingSignalProfiler {
- QQmlHandlingSignalProfiler(QObject *object, int index, QQmlBoundSignalExpression *expression)
+ QQmlHandlingSignalProfiler(QQmlBoundSignalExpression *expression)
{
enabled = QQmlProfilerService::instance
? QQmlProfilerService::instance->profilingEnabled() : false;
if (enabled) {
QQmlProfilerService *service = QQmlProfilerService::instance;
service->startRange(QQmlProfilerService::HandlingSignal);
- service->rangeData(QQmlProfilerService::HandlingSignal,
- QLatin1String(object->metaObject()->method(index).methodSignature()) + QLatin1String(": ")
- + expression->expression());
service->rangeLocation(QQmlProfilerService::HandlingSignal,
expression->sourceFile(), expression->lineNumber(),
expression->columnNumber());
if (QQmlDebugService::isDebuggingEnabled())
QV8DebugService::instance()->signalEmitted(QString::fromLatin1(s->m_scope->metaObject()->method(s->m_index).methodSignature()));
- QQmlHandlingSignalProfiler prof(*(s->m_scope), s->m_index, s->m_expression);
+ QQmlHandlingSignalProfiler prof(s->m_expression);
s->setIsEvaluating(true);