Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp

Issue 2391383002: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 27 matching lines...) Expand all
38 #include "bindings/core/v8/V8Node.h" 38 #include "bindings/core/v8/V8Node.h"
39 #include "bindings/core/v8/V8ScriptRunner.h" 39 #include "bindings/core/v8/V8ScriptRunner.h"
40 #include "bindings/core/v8/WrapperTypeInfo.h" 40 #include "bindings/core/v8/WrapperTypeInfo.h"
41 #include "core/dom/Attr.h" 41 #include "core/dom/Attr.h"
42 #include "core/dom/Element.h" 42 #include "core/dom/Element.h"
43 #include "core/dom/Node.h" 43 #include "core/dom/Node.h"
44 #include "core/html/imports/HTMLImportsController.h" 44 #include "core/html/imports/HTMLImportsController.h"
45 #include "core/inspector/InspectorTraceEvents.h" 45 #include "core/inspector/InspectorTraceEvents.h"
46 #include "platform/Histogram.h" 46 #include "platform/Histogram.h"
47 #include "platform/RuntimeEnabledFeatures.h" 47 #include "platform/RuntimeEnabledFeatures.h"
48 #include "platform/TraceEvent.h" 48 #include "platform/tracing/TraceEvent.h"
49 #include "public/platform/BlameContext.h" 49 #include "public/platform/BlameContext.h"
50 #include "public/platform/Platform.h" 50 #include "public/platform/Platform.h"
51 #include "wtf/Vector.h" 51 #include "wtf/Vector.h"
52 #include "wtf/allocator/Partitions.h" 52 #include "wtf/allocator/Partitions.h"
53 #include <algorithm> 53 #include <algorithm>
54 54
55 namespace blink { 55 namespace blink {
56 56
57 // FIXME: This should use opaque GC roots. 57 // FIXME: This should use opaque GC roots.
58 static void addReferencesForNodeWithEventListeners( 58 static void addReferencesForNodeWithEventListeners(
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 double startTime = WTF::currentTimeMS(); 543 double startTime = WTF::currentTimeMS();
544 v8::HandleScope scope(isolate); 544 v8::HandleScope scope(isolate);
545 PendingActivityVisitor visitor(isolate, executionContext); 545 PendingActivityVisitor visitor(isolate, executionContext);
546 toIsolate(executionContext)->VisitHandlesWithClassIds(&visitor); 546 toIsolate(executionContext)->VisitHandlesWithClassIds(&visitor);
547 scanPendingActivityHistogram.count( 547 scanPendingActivityHistogram.count(
548 static_cast<int>(WTF::currentTimeMS() - startTime)); 548 static_cast<int>(WTF::currentTimeMS() - startTime));
549 return visitor.pendingActivityFound(); 549 return visitor.pendingActivityFound();
550 } 550 }
551 551
552 } // namespace blink 552 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698