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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorTraceEvents.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/inspector/InspectorTraceEvents.h" 5 #include "core/inspector/InspectorTraceEvents.h"
6 6
7 #include <inttypes.h> 7 #include <inttypes.h>
8 #include <v8-profiler.h> 8 #include <v8-profiler.h>
9 #include <v8.h> 9 #include <v8.h>
10 #include <memory> 10 #include <memory>
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 timing.calculateMillisecondDelta(timing.sslStart())); 541 timing.calculateMillisecondDelta(timing.sslStart()));
542 value->setDouble("sslEnd", timing.calculateMillisecondDelta(timing.sslEnd())); 542 value->setDouble("sslEnd", timing.calculateMillisecondDelta(timing.sslEnd()));
543 value->setDouble("workerStart", 543 value->setDouble("workerStart",
544 timing.calculateMillisecondDelta(timing.workerStart())); 544 timing.calculateMillisecondDelta(timing.workerStart()));
545 value->setDouble("workerReady", 545 value->setDouble("workerReady",
546 timing.calculateMillisecondDelta(timing.workerReady())); 546 timing.calculateMillisecondDelta(timing.workerReady()));
547 value->setDouble("sendStart", 547 value->setDouble("sendStart",
548 timing.calculateMillisecondDelta(timing.sendStart())); 548 timing.calculateMillisecondDelta(timing.sendStart()));
549 value->setDouble("sendEnd", 549 value->setDouble("sendEnd",
550 timing.calculateMillisecondDelta(timing.sendEnd())); 550 timing.calculateMillisecondDelta(timing.sendEnd()));
551 value->setDouble("receiveHeadersEnd", timing.calculateMillisecondDelta( 551 value->setDouble(
552 timing.receiveHeadersEnd())); 552 "receiveHeadersEnd",
553 timing.calculateMillisecondDelta(timing.receiveHeadersEnd()));
553 value->setDouble("pushStart", timing.pushStart()); 554 value->setDouble("pushStart", timing.pushStart());
554 value->setDouble("pushEnd", timing.pushEnd()); 555 value->setDouble("pushEnd", timing.pushEnd());
555 } 556 }
556 } // namespace 557 } // namespace
557 558
558 std::unique_ptr<TracedValue> InspectorReceiveResponseEvent::data( 559 std::unique_ptr<TracedValue> InspectorReceiveResponseEvent::data(
559 unsigned long identifier, 560 unsigned long identifier,
560 LocalFrame* frame, 561 LocalFrame* frame,
561 const ResourceResponse& response) { 562 const ResourceResponse& response) {
562 String requestId = IdentifiersFactory::requestId(identifier); 563 String requestId = IdentifiersFactory::requestId(identifier);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 943
943 static size_t usedHeapSize() { 944 static size_t usedHeapSize() {
944 v8::HeapStatistics heapStatistics; 945 v8::HeapStatistics heapStatistics;
945 v8::Isolate::GetCurrent()->GetHeapStatistics(&heapStatistics); 946 v8::Isolate::GetCurrent()->GetHeapStatistics(&heapStatistics);
946 return heapStatistics.used_heap_size(); 947 return heapStatistics.used_heap_size();
947 } 948 }
948 949
949 std::unique_ptr<TracedValue> InspectorUpdateCountersEvent::data() { 950 std::unique_ptr<TracedValue> InspectorUpdateCountersEvent::data() {
950 std::unique_ptr<TracedValue> value = TracedValue::create(); 951 std::unique_ptr<TracedValue> value = TracedValue::create();
951 if (isMainThread()) { 952 if (isMainThread()) {
952 value->setInteger("documents", InstanceCounters::counterValue( 953 value->setInteger(
953 InstanceCounters::DocumentCounter)); 954 "documents",
955 InstanceCounters::counterValue(InstanceCounters::DocumentCounter));
954 value->setInteger( 956 value->setInteger(
955 "nodes", InstanceCounters::counterValue(InstanceCounters::NodeCounter)); 957 "nodes", InstanceCounters::counterValue(InstanceCounters::NodeCounter));
956 value->setInteger("jsEventListeners", 958 value->setInteger("jsEventListeners",
957 InstanceCounters::counterValue( 959 InstanceCounters::counterValue(
958 InstanceCounters::JSEventListenerCounter)); 960 InstanceCounters::JSEventListenerCounter));
959 } 961 }
960 value->setDouble("jsHeapSizeUsed", static_cast<double>(usedHeapSize())); 962 value->setDouble("jsHeapSizeUsed", static_cast<double>(usedHeapSize()));
961 return value; 963 return value;
962 } 964 }
963 965
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 if (request.move()) 1073 if (request.move())
1072 value->setBoolean("move", true); 1074 value->setBoolean("move", true);
1073 if (request.listBased()) 1075 if (request.listBased())
1074 value->setBoolean("listBased", true); 1076 value->setBoolean("listBased", true);
1075 else if (Node* node = result.innerNode()) 1077 else if (Node* node = result.innerNode())
1076 setNodeInfo(value.get(), node, "nodeId", "nodeName"); 1078 setNodeInfo(value.get(), node, "nodeId", "nodeName");
1077 return value; 1079 return value;
1078 } 1080 }
1079 1081
1080 } // namespace blink 1082 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698