Skip to content

Instantly share code, notes, and snippets.

View jasonLaster's full-sized avatar

Jason Laster jasonLaster

View GitHub Profile
diff --git a/src/protocol/graphics.ts b/src/protocol/graphics.ts
index 80d7e5c0..dd842802 100644
--- a/src/protocol/graphics.ts
+++ b/src/protocol/graphics.ts
@@ -70,6 +70,15 @@ function insertEntrySorted<T extends Timed>(array: T[], entry: T) {
}
}
+export function insertTypedEntrySorted(type, event) {
+ const map = {
diff --git a/src/protocol/socket.ts b/src/protocol/socket.ts
index 00bb62d4..0be7f19c 100644
--- a/src/protocol/socket.ts
+++ b/src/protocol/socket.ts
@@ -63,7 +63,7 @@ export function initSocket(store: UIStore, address?: string) {
socket.onmessage = makeInfallible(onSocketMessage);
}
-export function sendMessage<M extends CommandMethods>(
+export function sendMessage<M extends CommandMethods>(f
diff --git a/src/devtools/client/webconsole/components/FilterBar/ConsoleSettings.js b/src/devtools/client/webconsole/components/FilterBar/ConsoleSettings.js
index 655efd4d..0e55cf79 100644
--- a/src/devtools/client/webconsole/components/FilterBar/ConsoleSettings.js
+++ b/src/devtools/client/webconsole/components/FilterBar/ConsoleSettings.js
@@ -5,7 +5,7 @@
"use strict";
// React & Redux
-const { Component } = require("react");
+const React = require("react");
diff --git a/src/ui/actions/timeline.ts b/src/ui/actions/timeline.ts
index 1a92b883..9b6bc505 100644
--- a/src/ui/actions/timeline.ts
+++ b/src/ui/actions/timeline.ts
@@ -361,7 +361,7 @@ function playback(startTime: number, endTime: number): UIThunkAction {
dispatch(precacheScreenshots(nextGraphicsTime));
};
const shouldContinuePlayback = () => selectors.getPlayback(getState());
- prepareNextGraphics();
+ // prepareNextGraphics();
diff --git a/src/protocol/graphics.ts b/src/protocol/graphics.ts
index 2e10d755..50de1c54 100644
--- a/src/protocol/graphics.ts
+++ b/src/protocol/graphics.ts
@@ -444,7 +444,9 @@ export function refreshGraphics() {
}
}
- Video.init();
+ if (features.videoPlayback) {
diff --git a/devtools/startup/DevToolsStartup.jsm b/devtools/startup/DevToolsStartup.jsm
index 9961c8660c1e..52c49a3d8f3f 100644
--- a/devtools/startup/DevToolsStartup.jsm
+++ b/devtools/startup/DevToolsStartup.jsm
@@ -1387,553 +1387,3 @@ const JsonView = {
}
},
};
-
-var EXPORTED_SYMBOLS = ["DevToolsStartup", "validateProfilerWebChannelUrl"];
base/BUILD.gn | 3 +
base/allocator/allocator_interception_mac.mm | 6 +
base/allocator/allocator_shim.cc | 5 +
base/debug/debugger_posix.cc | 3 +
base/deterministic_containers.h | 185 +++++
base/logging.cc | 27 +
base/memory/platform_shared_memory_region_mac.cc | 7 +-
base/memory/read_only_shared_memory_region.cc | 5 +
base/message_loop/message_pump_kqueue.cc | 23 +
base/message_loop/message_pump_mac.mm | 7 +
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 7be3ca12455f..e81a29c97627 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -236,6 +236,7 @@ component("base") {
"debug/task_trace.h",
"deferred_sequenced_task_runner.cc",
"deferred_sequenced_task_runner.h",
+ "deterministic_containers.h",
"enterprise_util.h",
base/BUILD.gn | 3 +
base/allocator/allocator_interception_mac.mm | 6 +
base/allocator/allocator_shim.cc | 5 +
base/debug/debugger_posix.cc | 3 +
base/deterministic_containers.h | 185 +++++
base/logging.cc | 27 +
base/memory/platform_shared_memory_region_mac.cc | 7 +-
base/memory/read_only_shared_memory_region.cc | 5 +
base/message_loop/message_pump_kqueue.cc | 23 +
base/message_loop/message_pump_mac.mm | 7 +
diff --git a/src/control/worker.ts b/src/control/worker.ts
index 7edb8244..f9f8ea05 100644
--- a/src/control/worker.ts
+++ b/src/control/worker.ts
@@ -179,7 +179,7 @@ const gMappedLocationsCache: PromiseMap<Location, Location[]> = new PromiseMap({
getKey: locationKey,
async computeResult(generatedLocation) {
- const { mapped } = await sendWorkerCommand("getMappedLocations", {
+ const { mapped } = await batchedSendWorkerCommand("getMappedLocations", {