arthas/tutorials/katacoda/command-wc-en/wc.md

33 lines
568 B
Markdown
Raw Normal View History

2020-08-06 10:57:42 +08:00
Count lines.
`jad demo.MathGame main`{{execute T2}}
```bash
$ jad demo.MathGame main
ClassLoader:
+-sun.misc.Launcher$AppClassLoader@70dea4e
+-sun.misc.Launcher$ExtClassLoader@7a616cb1
Location:
/home/scrapbook/tutorial/arthas-demo.jar
public static void main(String[] args) throws InterruptedException {
MathGame game = new MathGame();
while (true) {
game.run();
TimeUnit.SECONDS.sleep(1L);
}
}
Affect(row-cnt:1) cost in 138 ms.
```
`jad demo.MathGame main | wc -l`{{execute T2}}
```bash
$ jad demo.MathGame main | wc -l
13
```