參考資料:
http://blog.csdn.net/loveaborn/article/details/29579787
如果上面這個方法無效,試試看下面指令
$ sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
make qemu_x86_64_defconfig
make -j8
qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2 -append root=/dev/sda -vga std
-------------------------------
for(x <- expr1) yield expr2
expr1.map(x => expr2)
-------------------------------
for(x <- expr1 if expr2) expr3
expr1.withFilter(x => expr2).map(x => expr3)
-------------------------------
for(x <- expr1 if expr2; seq) yield expr3
for(x <- expr1 withFilter expr2; seq) yield expr3
-------------------------------
for(x <- expr1; y <- expr2; seq) yield expr3
expr1.flatMap(x => for (y <- expr2; seq) yield expr3)
-------------------------------
for ((x1, x2) <- expr1) yield expr2
expr1.map{case(x1, x2) => expr2}
-------------------------------
for(pat <- expr1) yield2
expr1 withFilter {
case pat = > true
case _ => false
} map {
case pat => expr2
}
$ pip install pyside pyqode.core pyqode.python
$ git clone https://github.com/ya790206/call_seq
$ python demo.py
$ python -m call_seq.browser output.json
if __name__ == '__main__': with CallSeq(name='output.json'): test() # the code you want to trace
python -m call_seq.browser output.jsonNow you can trace code using call_seq.browser. Enjoy it.
import reflect.io._
Directory(".").list
#!/bin/bash
JAR_PATH="$(dirname $(dirname $(readlink -f $0)))/lib/IScala.jar"
KERNEL_CMD="[\"java\", \"-jar\", \"$JAR_PATH\", \"--profile\", \"{connection_file}\", \"-- parent\", \"$@\"]"
ipython console --profile scala --KernelManager.kernel_cmd="$KERNEL_CMD" --no-banner
libraryDependencies +=
"org.scala-lang" % "scala-actors" % "2.10.0"