Skip to content

Commit

Permalink
design: add GC pacer redesign
Browse files Browse the repository at this point in the history
For golang/go#44167.

Change-Id: I468aa78edb8588b4e48008ad44cecc08544a8f48
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/290489
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
  • Loading branch information
mknyszek committed Feb 16, 2021
1 parent a384797 commit 329650d
Show file tree
Hide file tree
Showing 57 changed files with 1,765 additions and 0 deletions.
864 changes: 864 additions & 0 deletions design/44167-gc-pacer-redesign.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions design/44167/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Design document

The GC pacer design document is generated from the `.src.md` file in this
directory.
It contains LaTeX formulas which Markdown cannot render, so they're
rendered by an external open-source tool,
[md-latex](https://github.com/mknyszek/md-tools).

Then, because Gitiles' markdown viewer can't render SVGs, run

```
./svg2png.bash
cd pacer-plots
./svg2png.bash
cd ..
```

And go back and replace all instances of SVG with PNG in the final document.

Note that `svg2png.bash` requires both ImageMagick and Google Chrome.

Binary file added design/44167/eqn1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/eqn9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
872 changes: 872 additions & 0 deletions design/44167/gc-pacer-redesign.src.md

Large diffs are not rendered by default.

Binary file added design/44167/inl1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/44167/inl24.png
Binary file added design/44167/inl25.png
Binary file added design/44167/inl26.png
Binary file added design/44167/inl3.png
Binary file added design/44167/inl4.png
Binary file added design/44167/inl5.png
Binary file added design/44167/inl6.png
Binary file added design/44167/inl7.png
Binary file added design/44167/inl8.png
Binary file added design/44167/inl9.png
Binary file added design/44167/pacer-plots/new-big-globals.png
Binary file added design/44167/pacer-plots/new-big-stacks.png
Binary file added design/44167/pacer-plots/new-heavy-step-alloc.png
Binary file added design/44167/pacer-plots/new-high-GOGC.png
Binary file added design/44167/pacer-plots/new-jitter-alloc.png
Binary file added design/44167/pacer-plots/new-osc-alloc.png
Binary file added design/44167/pacer-plots/new-steady.png
Binary file added design/44167/pacer-plots/new-step-alloc.png
Binary file added design/44167/pacer-plots/old-big-globals.png
Binary file added design/44167/pacer-plots/old-big-stacks.png
Binary file added design/44167/pacer-plots/old-heavy-step-alloc.png
Binary file added design/44167/pacer-plots/old-high-GOGC.png
Binary file added design/44167/pacer-plots/old-jitter-alloc.png
Binary file added design/44167/pacer-plots/old-osc-alloc.png
Binary file added design/44167/pacer-plots/old-steady.png
Binary file added design/44167/pacer-plots/old-step-alloc.png
8 changes: 8 additions & 0 deletions design/44167/svg2png.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

for input in *.svg; do
output=${input%.*}.png
google-chrome --headless --window-size=1920,1080 --disable-gpu --screenshot $input
convert screenshot.png -trim $output
done
rm screenshot.png

0 comments on commit 329650d

Please sign in to comment.