この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
software:vizexec [2011/02/12 03:24] sunagae [構成] |
software:vizexec [2014/06/06 23:03] sunagae [Download] |
||
---|---|---|---|
ライン 16: | ライン 16: | ||
===== 構成 ===== | ===== 構成 ===== | ||
+ | ==== ファイルの場合 ==== | ||
<graphviz dot right> | <graphviz dot right> | ||
digraph usage { | digraph usage { | ||
node [fontsize=10 style=filled ]; | node [fontsize=10 style=filled ]; | ||
node [shape = box style=filled fillcolor="#FFF0F0"]; | node [shape = box style=filled fillcolor="#FFF0F0"]; | ||
- | cpp_prog[ label = "C++プログラム" ]; | + | cpp_prog[ label = "C++ Programs" ]; |
- | py_prog[ label = "Pythonプログラム" ]; | + | py_prog[ label = "Python Programs" ]; |
node [shape = ellipse fillcolor = "#CCCCFF"]; | node [shape = ellipse fillcolor = "#CCCCFF"]; | ||
ライン 37: | ライン 38: | ||
py_prog -> py_lw [ label = "Use marker" ]; | py_prog -> py_lw [ label = "Use marker" ]; | ||
py_lw -> logfile [ label = "Output" ]; | py_lw -> logfile [ label = "Output" ]; | ||
- | logfile -> vizexec [ label = "読み込み" ]; | + | logfile -> vizexec [ label = "Read" ]; |
} | } | ||
</graphviz> | </graphviz> | ||
ライン 43: | ライン 44: | ||
* LogFileのところをmkfifoとかでパイプ (FIFO) にするとリアルタイムな視覚化ができる | * LogFileのところをmkfifoとかでパイプ (FIFO) にするとリアルタイムな視覚化ができる | ||
+ | ==== TCPで接続する場合 ==== | ||
+ | <graphviz dot right> | ||
+ | digraph usage { | ||
+ | node [fontsize=10 style=filled ]; | ||
+ | node [shape = box style=filled fillcolor="#FFF0F0"]; | ||
+ | subgraph cluster_cpp_prog | ||
+ | { | ||
+ | label = "C++ Program (Process)" | ||
+ | node [shape = box style=filled fillcolor="#FFF0F0"]; | ||
+ | cpp_thread1 [ label = "Thread1" ]; | ||
+ | cpp_thread2 [ label = "Thread2" ]; | ||
+ | cpp_thread3 [ label = "Thread3" ]; | ||
+ | node [shape = ellipse fillcolor = "#CCCCFF"]; | ||
+ | cpp_lw[ label = "LogWriter for C++" ]; | ||
+ | } | ||
+ | node [shape = box style=filled fillcolor="#FFF0F0"]; | ||
+ | subgraph cluster_py_prog | ||
+ | { | ||
+ | label = "Python Program (Process)" | ||
+ | py_thread1 [ label = "Thread1" ]; | ||
+ | py_thread2 [ label = "Thread2" ]; | ||
+ | node [shape = ellipse fillcolor = "#CCCCFF"]; | ||
+ | py_lw[ label = "LogWriter for Python" ]; | ||
+ | } | ||
+ | |||
+ | |||
+ | node [shape = box]; | ||
+ | vizexec[ label = "vizexec.py (Visualize Server)" fillcolor = "#F0FFF0" ]; | ||
+ | |||
+ | node [shape = note]; | ||
+ | logfile[ label = "LogFile" fillcolor = "#FFFFFF"]; | ||
+ | |||
+ | cpp_thread1 -> cpp_lw [ ]; | ||
+ | cpp_thread2 -> cpp_lw [ ]; | ||
+ | cpp_thread3 -> cpp_lw [ label = "Use marker" ]; | ||
+ | cpp_lw -> vizexec [ label = "TCP/IP" ]; | ||
+ | py_thread1 -> py_lw [ ]; | ||
+ | py_thread2 -> py_lw [ label = "Use marker or Hook" ]; | ||
+ | py_lw -> vizexec [ label = "TCP/IP" ]; | ||
+ | vizexec -> logfile [ label = "Write out" ]; | ||
+ | } | ||
+ | </graphviz> | ||
+ | |||
+ | * vizexecをサーバーとして動かすことができる | ||
+ | * ファイルの場合と同様にスレッドごとに出力 | ||
+ | * プロセスをまたがったやりとりも可視化可能 | ||
+ | * 必要に応じて履歴をすべてファイルに書き出すことができる | ||
====== Download ====== | ====== Download ====== | ||
- | * [[http://www.sunaga-lab.net/hgrepos/vizexec/archive/bd4f5de27059.zip|VizEXEC 0.1]] | + | * [[http://www.sunaga-lab.com/hgrepos/vizexec/archive/b83a93532eac.zip|VizEXEC 0.2]] |
+ | * [[http://www.sunaga-lab.com/hgrepos/vizexec/archive/bd4f5de27059.zip|VizEXEC 0.1]] | ||
===== インストール ===== | ===== インストール ===== |