Ejemplo n.º 1
0
void InspectorTimelineAgent::internalStop()
{
    if (!m_enabled)
        return;

    m_instrumentingAgents.setInspectorTimelineAgent(nullptr);

    if (m_scriptDebugServer)
        m_scriptDebugServer->removeListener(this, true);

#if PLATFORM(COCOA)
    m_frameStartObserver = nullptr;
    m_frameStopObserver = nullptr;
    m_runLoopNestingLevel = 0;

    // Complete all pending records to prevent discarding events that are currently in progress.
    while (!m_recordStack.isEmpty())
        didCompleteCurrentRecord(m_recordStack.last().type);
#endif

    clearRecordStack();

    m_enabled = false;
    m_startedComposite = false;

    m_frontendDispatcher->recordingStopped(timestamp());
}
Ejemplo n.º 2
0
void InspectorTimelineAgent::stop(ErrorString*)
{
    if (!m_enabled)
        return;

    m_weakFactory.revokeAll();
    m_instrumentingAgents->setInspectorTimelineAgent(0);

    clearRecordStack();

    m_enabled = false;
}
void InspectorTimelineAgent::stop(ErrorString*)
{
    if (!m_state->getBoolean(TimelineAgentState::timelineAgentEnabled))
        return;
    m_instrumentingAgents->setInspectorTimelineAgent(0);
    ScriptGCEvent::removeEventListener(this);

    clearRecordStack();
    m_gcEvents.clear();

    m_state->setBoolean(TimelineAgentState::timelineAgentEnabled, false);
}
Ejemplo n.º 4
0
void InspectorTimelineAgent::stop(ErrorString*)
{
    if (!m_enabled)
        return;

    m_weakFactory.revokeAll();
    m_instrumentingAgents->setInspectorTimelineAgent(nullptr);

    if (m_scriptDebugServer)
        m_scriptDebugServer->removeListener(this, true);

    clearRecordStack();

    m_enabled = false;
}
Ejemplo n.º 5
0
void InspectorTimelineAgent::stop(ErrorString*)
{
    if (!m_state->getBoolean(TimelineAgentState::timelineAgentEnabled))
        return;

    m_traceEventProcessor->shutdown();
    m_traceEventProcessor.clear();
    m_weakFactory.revokeAll();
    m_instrumentingAgents->setInspectorTimelineAgent(0);
    ScriptGCEvent::removeEventListener(this);

    clearRecordStack();
    m_gcEvents.clear();

    m_state->setBoolean(TimelineAgentState::timelineAgentEnabled, false);
}
Ejemplo n.º 6
0
void InspectorTimelineAgent::didCommitLoad()
{
    clearRecordStack();
}