diff --git a/cobalt/debug/backend/tracing_controller.cc b/cobalt/debug/backend/tracing_controller.cc index ff20078e0162..22d0e66d239f 100644 --- a/cobalt/debug/backend/tracing_controller.cc +++ b/cobalt/debug/backend/tracing_controller.cc @@ -38,8 +38,6 @@ constexpr char kInspectorDomain[] = "Tracing"; constexpr char kStarted[] = "started"; constexpr char kCategories[] = "categories"; -// Size in characters of JSON to batch dataCollected events. -// constexpr size_t kDataCollectedSize = 24 * 1024; } // namespace @@ -99,7 +97,6 @@ void TraceEventAgent::CollectTraceData( base::OnceClosure finished_cb, const scoped_refptr& event_string, bool has_more_events) { - LOG(INFO) << "YO THOR EVNT APPEND " << event_string->data(); trace_buffer_.AddFragment(event_string->data()); if (!has_more_events) { std::move(finished_cb).Run(); @@ -111,7 +108,6 @@ TraceV8Agent::TraceV8Agent(script::ScriptDebugger* script_debugger) : script_debugger_(script_debugger) {} void TraceV8Agent::AppendTraceEvent(const std::string& trace_event_json) { - LOG(INFO) << "YO THOR V8 APPEND " << trace_event_json; trace_buffer_.AddFragment(trace_event_json); } @@ -152,7 +148,7 @@ TracingController::TracingController(DebugDispatcher* dispatcher, base::Bind(&TracingController::Start, base::Unretained(this)); agents_.push_back(std::make_unique()); - agents_.push_back(std::make_unique(script_debugger)); + // agents_.push_back(std::make_unique(script_debugger)); } void TracingController::Thaw(JSONObject agent_state) { @@ -199,7 +195,6 @@ JSONObject TracingController::Freeze() { } void TracingController::End(Command command) { - // DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); if (!tracing_started_) { command.SendErrorResponse(Command::kInvalidRequest, "Tracing not started"); return; @@ -215,7 +210,6 @@ void TracingController::End(Command command) { } void TracingController::Start(Command command) { - // DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); if (tracing_started_) { command.SendErrorResponse(Command::kInvalidRequest, "Tracing already started"); @@ -294,8 +288,6 @@ void TracingController::SendDataCollectedEvent() { if (collected_events_) { std::string events; collected_events_->GetString(0, &events); - LOG(INFO) << "YO THOR ! SEND DATA COLLECTED! num:" - << collected_events_->GetSize() << " Events:" << events; JSONObject params(new base::DictionaryValue()); // Releasing the list into the value param avoids copying it. params->Set("value", std::move(collected_events_)); diff --git a/cobalt/media/base/sbplayer_pipeline.cc b/cobalt/media/base/sbplayer_pipeline.cc index b4cfb230ea33..8b2962832fff 100644 --- a/cobalt/media/base/sbplayer_pipeline.cc +++ b/cobalt/media/base/sbplayer_pipeline.cc @@ -1001,7 +1001,6 @@ void SbPlayerPipeline::OnDemuxerStreamRead( #endif // SB_HAS(PLAYER_WITH_URL) DCHECK(type == DemuxerStream::AUDIO || type == DemuxerStream::VIDEO) << "Unsupported DemuxerStream::Type " << type; - TRACE_EVENT0("cobalt::media", "SbPlayerPipeline::OnDemuxerStreamRead"); if (!task_runner_->BelongsToCurrentThread()) { task_runner_->PostTask( @@ -1067,7 +1066,6 @@ void SbPlayerPipeline::OnNeedData(DemuxerStream::Type type, #endif // SB_HAS(PLAYER_WITH_URL) DCHECK(task_runner_->BelongsToCurrentThread()); - TRACE_EVENT0("cobalt::media", "SbPlayerPipeline::OnNeedData"); // In case if Stop() has been called. if (!player_bridge_) { return; diff --git a/third_party/devtools/front_end/timeline_model/TimelineModel.js b/third_party/devtools/front_end/timeline_model/TimelineModel.js index 8f8f3e6f0e56..e1f3d0595072 100644 --- a/third_party/devtools/front_end/timeline_model/TimelineModel.js +++ b/third_party/devtools/front_end/timeline_model/TimelineModel.js @@ -31,19 +31,6 @@ /** * @unrestricted */ -let printObj = function (obj) { - let string = ''; - for (let prop in obj) { - if (typeof obj[prop] == 'string') { - string += prop + ': ' + obj[prop] + '; \n'; - } - // else { - // string += prop + ': {NOTaSTRING}; \n'; - // } - } - return string; -} - export class TimelineModelImpl { constructor() { this._reset(); @@ -601,7 +588,6 @@ export class TimelineModelImpl { let i = events.lowerBound(range.from, (time, event) => time - event.startTime); for (; i < events.length; i++) { const event = events[i]; - if (event.startTime >= range.to) { break; } @@ -1031,9 +1017,7 @@ export class TimelineModelImpl { timelineData.warning = TimelineModelImpl.WarningType.IdleDeadlineExceeded; } break; - } - return true; }