This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"traceEvents":[{"args":{"name":"swapper"},"cat":"__metadata","name":"thread_name","ph":"M","pid":0,"tid":0,"ts":0},{"args":{"name":"CrBrowserMain"},"cat":"__metadata","name":"thread_name","ph":"M","pid":2791,"tid":259,"ts":0},{"args":{"name":"Compositor"},"cat":"__metadata","name":"thread_name","ph":"M","pid":20108,"tid":31491,"ts":0},{"args":{"name":"VideoFrameCompositor"},"cat":"__metadata","name":"thread_name","ph":"M","pid":20108,"tid":63491,"ts":0},{"args":{"name":"CrRendererMain"},"cat":"__metadata","name":"thread_name","ph":"M","pid":20108,"tid":259,"ts":0},{"args":{"name":"Chrome_IOThread"},"cat":"__metadata","name":"thread_name","ph":"M","pid":2791,"tid":38659,"ts":0},{"args":{"name":"VizCompositorThread"},"cat":"__metadata","name":"thread_name","ph":"M","pid":2882,"tid":40195,"ts":0},{"args":{"name":"Chrome_ChildIOThread"},"cat":"__metadata","name":"thread_name","ph":"M","pid":2882,"tid":42243,"ts":0},{"args":{"name":"Chrome_ChildIOThread"},"cat":"__metadata","name":"thread_name","ph":"M","pid":201 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": [], | |
"styles": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-ignore | |
const scheduleAsyncTask = console.scheduleAsyncTask ?? (() => {}); | |
// @ts-ignore | |
const startAsyncTask = console.startAsyncTask ?? (() => {}); | |
// @ts-ignore | |
const finishAsyncTask = console.finishAsyncTask ?? (() => {}); | |
interface ConsoleTask { | |
run<T>(f: () => T): T; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const queue = []; | |
const elements = new Map(); | |
let counter = 0; | |
export function addWork(work) { | |
const id = counter++; | |
queue.push({ ...work, id }); | |
return id; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="devtools.js"></script> | |
</head> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- macOS: open -a Google\ Chrome\ Canary --args --js-flags="--experimental-async-stack-tagging-api" --> | |
<!-- Linux: chrome --js-flags="--experimental-async-stack-tagging-api" --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script type="module"> | |
import * as rxjs from "https://unpkg.com/rxjs@7?module"; | |
// Wraps `rxjs::from` to also schedule an async task. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --- Userland --- */ | |
function makeUpdate(i) { | |
return function someUpdate() { | |
console.trace(`completeUpdate: update ${i}`); | |
}; | |
} | |
function businessLogic() { | |
scheduler.scheduleTask("foo", [makeUpdate(1), makeUpdate(2), makeUpdate(3)]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --- Userland --- */ | |
function someTask() { | |
console.trace("completeWork: someTask"); | |
} | |
function someOtherTask() { | |
console.trace("completeWork: someOtherTask"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enviroment setup | |
# Path vars | |
set -gx PATH /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin /sbin | |
set -gx PATH /opt/homebrew/bin $PATH | |
set -gx PATH $PATH $HOME/.local/bin | |
set -gx PATH $PATH $HOME/.cargo/bin | |
set -gx PATH $PATH $HOME/.yarn/bin |