2011年9月10日

gdb试用(1)

摘要: gdb试用(1)cutepig@ubuntu:/mnt/hgfs/share/testValgrind$ gdb ./testGNU gdb (GDB) 7.0-ubuntuCopyright (C) 2009 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WAR 阅读全文

posted @ 2011-09-10 15:58 cutepig 阅读(264) 评论(0) 推荐(0) 编辑

qt 试用 (2)命令行工具

摘要: qt 试用 (2)启动Qt 4.7.4 for Desktop (MSVC 2008)Setting up environment for Qt usage...初始化vc命令行C:\WINDOWS\system32>"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86Setting environment for using Microsoft Visual Studio 2008 x86 tools.编写程序G:\codes\testQt>notepad test.cpp#in 阅读全文

posted @ 2011-09-10 13:59 cutepig 阅读(2854) 评论(0) 推荐(0) 编辑

valgrind试用(1)

摘要: valgrind试用(1)安装程序sudo apt-get install valgrind编辑测试程序gedit test.cpp#include <string.h>#include <stdlib.h>int main(int argc, char *argv[]){ char *ptr; ptr = (char*) malloc(10); strcpy(ptr, "01234567890"); return 0;}编译运行cutepig@ubuntu:~/testValgrind$ g++ -g -o test test.cppcutepig 阅读全文

posted @ 2011-09-10 13:43 cutepig 阅读(592) 评论(0) 推荐(0) 编辑

java性能分析工具

摘要: java性能分析的工具jprobe 内存的话:jmap -histo:live pidjmap -heapdump?再用EMA(Eclipse Memory Analisis)分析,或者用自带的jhat性能的话:top -H -p pidjstack pid或者 jprofiler 试用版吧, 也有一些类似的免费的 阅读全文

posted @ 2011-09-10 12:47 cutepig 阅读(300) 评论(0) 推荐(0) 编辑

fltk试用 (1)

摘要: 先安装基本的库,用aptget可以自动安装依赖sudo apt-get install libfltk1.1-dev libfltk1.1下载一个最新的源代码,编译tar avzf fltkxxxcd fltkxxx./configuremake sudo make installcutepig@ubuntu:~/Downloads/fltk-1.3.0$ sudo make install=== installing FL ===Installing include files in /usr/local/include...=== installing jpeg ===Installing 阅读全文

posted @ 2011-09-10 11:07 cutepig 阅读(512) 评论(0) 推荐(0) 编辑

qt 试用 (1)

摘要: qt 试用 (1)- 如果语言不对,这么设置即可set LANG=en_UScd "C:\Documents and Settings\Administrator"C:\QtSDK\QtCreator\bin\qtcreator.exe- vc为compiler时的调试需要安装debug tools for windows,安装后重新启动qt creater即可- 写一个最简单的dialog程序,并添加一个按钮的消息映射点右键,选择go to slot,选择onclieked输入代码void Dialog::on_pushButton_clicked(){ QMessage 阅读全文

posted @ 2011-09-10 10:57 cutepig 阅读(250) 评论(0) 推荐(0) 编辑

vmware tools

摘要: cutepig@ubuntu:~$ lsDesktop Downloads Music Public VideosDocuments examples.desktop Pictures Templatescutepig@ubuntu:~$ pwd/home/cutepigcutepig@ubuntu:~$ cd /home/cutepig/Desktop/vmware-tools-distribcutepig@ubuntu:~/Desktop/vmware-tools-distrib$ ./vmware-install.pl Please re-run this program as the 阅读全文

posted @ 2011-09-10 00:45 cutepig 阅读(2382) 评论(0) 推荐(0) 编辑

导航