Skip to content

Commit 9d21ad9

Browse files
committed
Fix image links
1 parent 0dd4d95 commit 9d21ad9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

blog/_posts/2018-06-04-scalac-profiling.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ You can then visualize it with `$BROWSER bloop-profile-initial.svg`.
451451
452452
After we're all set up, we'll then get an `svg` file that looks like this:
453453
454-
[![Initial flamegraph of implicit search in `frontend`](/resources/img/blog/bloop-profile-0.svg)](/resources/img/blog/bloop-profile-0.svg)
454+
[![Initial flamegraph of implicit search in `frontend`](/resources/img/blog/bloop-profile-0.png)](/resources/img/blog/bloop-profile-0.svg)
455455
456456
(The flamegraph is a png image. You can check the svg by opening the image in
457457
a new tab and replacing `png` by `svg` in the URL. The svg images allows you to
@@ -669,7 +669,7 @@ exploration.
669669
#### Reading the implicit search flamegraph
670670
671671
672-
[![Initial flamegraph of implicit search in `frontend`](/resources/img/blog/bloop-profile-0.svg)](/resources/img/blog/bloop-profile-0.svg)
672+
[![Initial flamegraph of implicit search in `frontend`](/resources/img/blog/bloop-profile-0.png)](/resources/img/blog/bloop-profile-0.svg)
673673
674674
The flamegraph has three colors. Every color has a meaning.
675675
@@ -693,7 +693,7 @@ shapeless.Strict[caseapp.core.Parser[bloop.cli.Commands.Run]] (id 12121) (expand
693693
```
694694
695695
On every stack trace, you have also the information about the timing. The
696-
unit of time is nanoseconds. So one million ns is one second. We use
696+
unit of time is nanoseconds. So one billion ns is one second. We use
697697
nanoseconds because flamegraphs cannot display decimal values and we don't
698698
want to lose time precision.
699699
@@ -749,7 +749,7 @@ Great! Well, let's check the compile time and flamegraphs now.
749749
typer : 1 spans, ()13625.005ms (71.5%)
750750
```
751751
752-
[![Flamegraph after cached implicits](/resources/img/blog/bloop-profile-1.png)](/resources/img/blog/bloop-profile-1.png)
752+
[![Flamegraph after cached implicits](/resources/img/blog/bloop-profile-1.png)](/resources/img/blog/bloop-profile-1.svg)
753753
754754
The compile time is 2.5x faster. Not bad for a two line change. The duration
755755
of implicit search accounts for 13 seconds, roughly ~95% of typer.
@@ -869,7 +869,7 @@ time spent in implicits : 13515 spans, ()12409.099ms (95.4%)
869869
time spent in macroExpand : 17175 spans, ()11974.695ms (92.0%)
870870
```
871871
872-
[![Implicit flamegraph after shapeless change](/resources/img/blog/bloop-profile-2.png)](/resources/img/blog/bloop-profile-2.png)
872+
[![Implicit flamegraph after shapeless change](/resources/img/blog/bloop-profile-2.png)](/resources/img/blog/bloop-profile-2.svg)
873873
874874
The change had a mild positive effect -- we gained two seconds. This change
875875
seems to have removed the log we saw before and some of the failed implicit
@@ -982,7 +982,7 @@ the changed version.
982982
typer : 1 spans, ()11360.512ms (71.1%)
983983
```
984984
985-
[![New flamegraph baseline](/resources/img/blog/bloop-profile-3.png)](/resources/img/blog/bloop-profile-3.png)
985+
[![New flamegraph baseline](/resources/img/blog/bloop-profile-3.png)](/resources/img/blog/bloop-profile-3.svg)
986986
987987
The new caching only shaves around ~600ms of compile times. Let's check
988988
compiling with our new case-app now.
@@ -992,7 +992,7 @@ compiling with our new case-app now.
992992
typer : 1 spans, ()5074.836ms (68.3%)
993993
```
994994
995-
[![Flamegraph after case-app change](/resources/img/blog/bloop-profile-4.png)](/resources/img/blog/bloop-profile-4.png)
995+
[![Flamegraph after case-app change](/resources/img/blog/bloop-profile-4.png)](/resources/img/blog/bloop-profile-4.svg)
996996
997997
Bingo! Most of the time-consuming failed implicit searches are gone and
998998
compilation time has halved. Our hypothesis is confirmed: the `Strict` macro
@@ -1038,7 +1038,7 @@ implicit val testParser: Parser[Commands.Test] = Parser.generic
10381038
typer : 1 spans, ()7925.156ms (78.0%)
10391039
```
10401040
1041-
[![Flamegraph after more cached parsers](/resources/img/blog/bloop-profile-5.png)](/resources/img/blog/bloop-profile-5.png)
1041+
[![Flamegraph after more cached parsers](/resources/img/blog/bloop-profile-5.png)](/resources/img/blog/bloop-profile-5.svg)
10421042
10431043
We're in the right direction, but there doesn't seem to be any
10441044
straightforward way of decreasing that compilation time anymore.
@@ -1135,7 +1135,7 @@ And now let's check the compilation time.
11351135
typer : 1 spans, ()5435.895ms (74.6%)
11361136
```
11371137
1138-
[![Flamegraph after all cached implicits](/resources/img/blog/bloop-profile-6.png)](/resources/img/blog/bloop-profile-6.png)
1138+
[![Flamegraph after all cached implicits](/resources/img/blog/bloop-profile-6.png)](/resources/img/blog/bloop-profile-6.svg)
11391139
11401140
Great, that reduced compile times by 3 more seconds. You can continue the
11411141
same strategy over and over. This is where we stop; we have already cached the
@@ -1190,7 +1190,7 @@ change often as it is the case. Let's try out the new change!
11901190
typer : 1 spans, ()2887.031ms (64.0%)
11911191
```
11921192
1193-
[![Flamegraph after caching + case-app changes](/resources/img/blog/bloop-profile-7.png)](/resources/img/blog/bloop-profile-7.png)
1193+
[![Flamegraph after caching + case-app changes](/resources/img/blog/bloop-profile-7.png)](/resources/img/blog/bloop-profile-7.svg)
11941194
11951195
Great! We now have a compile time under 5 seconds for an application that
11961196
still uses a powerful derivation mechanism, it's easy to maintain and it's
486 KB
Loading

0 commit comments

Comments
 (0)