OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 void InspectorInstrumentation::stopConsoleTimingImpl(InstrumentingAgents* instru
mentingAgents, const String& title, PassRefPtr<ScriptCallStack> stack) | 717 void InspectorInstrumentation::stopConsoleTimingImpl(InstrumentingAgents* instru
mentingAgents, const String& title, PassRefPtr<ScriptCallStack> stack) |
718 { | 718 { |
719 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorCons
oleAgent()) | 719 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorCons
oleAgent()) |
720 consoleAgent->stopTiming(title, stack); | 720 consoleAgent->stopTiming(title, stack); |
721 } | 721 } |
722 | 722 |
723 void InspectorInstrumentation::consoleTimeStampImpl(InstrumentingAgents* instrum
entingAgents, PassRefPtr<ScriptArguments> arguments) | 723 void InspectorInstrumentation::consoleTimeStampImpl(InstrumentingAgents* instrum
entingAgents, PassRefPtr<ScriptArguments> arguments) |
724 { | 724 { |
725 if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTi
melineAgent()) { | 725 if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTi
melineAgent()) { |
726 String message; | 726 String message; |
727 arguments->getFirstArgumentAsString(message); | 727 arguments->argumentToString(0, message); |
728 timelineAgent->didTimeStamp(message); | 728 timelineAgent->didTimeStamp(message); |
729 } | 729 } |
730 } | 730 } |
731 | 731 |
732 #if ENABLE(JAVASCRIPT_DEBUGGER) | 732 #if ENABLE(JAVASCRIPT_DEBUGGER) |
733 void InspectorInstrumentation::addStartProfilingMessageToConsoleImpl(Instrumenti
ngAgents* instrumentingAgents, const String& title, unsigned lineNumber, const S
tring& sourceURL) | 733 void InspectorInstrumentation::addStartProfilingMessageToConsoleImpl(Instrumenti
ngAgents* instrumentingAgents, const String& title, unsigned lineNumber, const S
tring& sourceURL) |
734 { | 734 { |
735 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorPr
ofilerAgent()) | 735 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorPr
ofilerAgent()) |
736 profilerAgent->addStartProfilingMessageToConsole(title, lineNumber, sour
ceURL); | 736 profilerAgent->addStartProfilingMessageToConsole(title, lineNumber, sour
ceURL); |
737 } | 737 } |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForPage(Page*
page) | 930 InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForPage(Page*
page) |
931 { | 931 { |
932 if (!page) | 932 if (!page) |
933 return 0; | 933 return 0; |
934 return instrumentationForPage(page); | 934 return instrumentationForPage(page); |
935 } | 935 } |
936 | 936 |
937 } // namespace WebCore | 937 } // namespace WebCore |
938 | 938 |
939 #endif // !ENABLE(INSPECTOR) | 939 #endif // !ENABLE(INSPECTOR) |
OLD | NEW |