のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2015-11-11から1日間の記事一覧

valgrind

u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ valgrind --tool=callgrind pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png --runs=1000 ==34153== Callgrind, a call-graph generating cache profiler ==…

valgrind

1352 valgrind --tool=callgrind pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png 1353 ls 1354 callgrind_annotate --auto=yes callgrind/out.31057 1355 callgrind_annotate --auto=yes ./callgrind/out.31057 13…

perf report

1344 perf record -g pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png --runs=10000 1345 perf report --comm=pango-view --call-graph | cat -n > aaa.txt 1346 less aaa.txt 1347 perf report --comm=pango-view …

error: no sample files found: profile specification too strict ?

u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ opreport Xorg Using /var/lib/oprofile/samples/ for samples directory. WARNING! The OProfile kernel driver reports sample buffer overflows. Such overflows can result in incorrect sample a…

opcontrol

$ sudo opcontrol --no-vmlinux --callgraph 10000000$ sudo opcontrol --reset $ sudo opcontrol --start && pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png ; sudo opcontrol --stop $ sudo opcontrol --dump

oprofile

呼び出し履歴数 (DEPTH) を追加で指定します:opcontrol --no-vmlinux --callgraph DEPTH OProfile デーモンを起動します:opcontrol --start Using 2.6+ OProfile kernel interface. Using log file /var/lib/oprofile/samples/oprofiled.log Daemon started.…

opcontrol --start

u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ sudo opcontrol --no-vmlinux --start ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf. Using default event: CPU_CLK_UNHALTED:100000:0:1:1 Error: counter 0 not…

oprofile

u01@vm01:~/layout/oss/pango-1.36.8/pango-view$ sudo opcontrol --no-vmlinux --help opcontrol: usage: -l/--list-events list event types and unit masks -?/--help this message -v/--version show version --init loads the oprofile module and opro…

sprof

-rw-rw-r-- 1 u01 u01 59 11月 11 15:17 test-thai_kigen.txt -rw-rw-r-- 1 u01 u01 24576 11月 11 15:52 typescript u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ export LD_PROFILE u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ expor…

gprof2dot

pipのインストールwget https://bootstrap.pypa.io/get-pip.pysudo python get-pip.py $ sudo pip install gprof2dot $ gprof foo | gprof2dot.py > foo.dot dot -Tps input.dot > output.eps dot -Tpng input.dot > output.png

メイクのコンパイルオプションを表示する。make V=1

u01@vm01:~/layout/oss/pango-1.36.8/pango-view$ make V=1 cp ./../modules/pangorc pangorc make all-am make[1]: Entering directory `/home/u01/layout/oss/pango-1.36.8/pango-view' gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_DISABLE_CAST_CHECKS -pthre…

do_output

239 void 240 do_output (PangoContext *context, 241 RenderCallback render_cb, 242 TransformCallback transform_cb, 243 gpointer cb_context, 244 gpointer cb_data, 245 int *width_out, 246 int *height_out) 247{ 248 PangoLayout *layout; 249 Pang…

do_output

239void 240 do_output (PangoContext *context, 241 RenderCallback render_cb, 242 TransformCallback transform_cb, 243 gpointer cb_context, 244 gpointer cb_data, 245 int *width_out, 246 int *height_out) 247 { 248 PangoLayout *layout; 249 Pang…