arthas/tutorials/katacoda/command-wc-cn/wc.md
2020-08-06 10:57:42 +08:00

580 B

按行统计输出结果

jad demo.MathGame main{{execute T2}}

$ 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}}

$ jad demo.MathGame main | wc -l
13