随笔分类 - [技术]毕设
摘要:参数说明
l-b不再输出统计图表中每个字段的详细描述。
l-p只输出函数的调用图(Callgraph的那部分信息)。
l-q只输出函数的时间消耗列表。
l-eName不再输出函数Name及其子函数的调用图(除非它们有未被限制的其它父函数)。可以给定多个-e标志。一个-e标志只能指定一个函数。
l-EName不再输出函数Name及其子函数的调用图,此标志类似于...
阅读全文
摘要:转自:http://ariasprado.name/2011/11/30/profiling-application-llc-cache-misses-under-linux-using-perf-events.html
In this post we will see how to do some profiling under Ubuntu Linux using Perf Events, p...
阅读全文
摘要:【转自】http://www.kankanews.com/ICkengine/archives/61043.shtml
文章来自KENGINE | Kankanews.com
摘要: 本文主要讲eclipse插件开发的具体步骤,第一个插件工程的开发,调试,导出,安装,适合初学 1.1.创建plug-in项目: 这次做的是eclipse插件,这...
阅读全文
摘要:【转自】http://blog.csdn.net/wind19/article/details/4822666
错误原因之一很有可能是你的脚本文件是DOS格式的, 即每一行的行尾以/r/n来标识, 其ASCII码分别是0x0D, 0x0A.
可以有很多种办法看这个文件是DOS格式的还是UNIX格式的, 还是MAC格式的
(1). vi filename
然后用命令
:set ff?
可以看到dos...
阅读全文
摘要:Declaration Following is the declaration for sprintf() function.int sprintf(char *str, const char *format, ...)
Example
The following example shows the usage of sprintf() function.
#include #include ...
阅读全文
摘要:1: #include 2: int system(const char *command); 3: 4: while (something) { 5: int ret = system("foo"); 6: if (WIFSIGNALED(ret) && ...
阅读全文
摘要:Source code: 1: #include 2: void myStartupFun (void) __attribute__ ((constructor)); 3: void myCleanupFun (void) __attribute__ ((destructor)); 4: 5: /...
阅读全文
摘要:Source file: 1: #define __USE_GNU //import! 2: #include 3: #include 4: void getFuncNameByAddr(void *this_fn, void *call_site) { 5: Dl_info DlInfo...
阅读全文
摘要:myFun.h 1: #include 2: 3: void __cyg_profile_func_enter(void *this_fn, void *call_site) 4: __attribute__((no_instrument_function)); 5: void _...
阅读全文
摘要:1: int save_out = dup(fileno(stdout));//backup stdout 2: int out = open("cout.log", O_RDWR|O_CREAT|O_APPEND, 0600); 3: int nRet; 4: fflush(stdout); 5...
阅读全文
摘要:https://perf.wiki.kernel.org/index.php/Tutorial
perf manpage 重要!!!http://web.eece.maine.edu/~vweaver/projects/perf_events/programming.html
intel 处理器提供的performance events
http://www.intel.com/content/...
阅读全文
摘要:原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333 测试机器的硬件信息: 查看CPU信息(型号) # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 Intel(R) Xeon(R) CPU...
阅读全文
摘要:调好程序后,运行发现ecpu总是0,调试发现check_cpufreq_stats总是返回0,即not supported
解决方案:
参考http://blog.sina.com.cn/s/blog_62218fc80100rko7.html
http://hi.baidu.com/asalwayswinter/item/35e1da4815daa496823ae10e 参考一: /*选...
阅读全文
摘要:问题一: when I try to compile pTop I get the following message: cc -c -o src/avltree.o src/avltree.c In file included from src/avltree.c:12: src/eperf.h:In function 'sys_perf_event_open': src/eperf.h:...
阅读全文
摘要:http://msdn.microsoft.com/en-us/library/tt15eb9t(VS.80).aspxOpenMP cs08 类别:多核查看评论
阅读全文
摘要:在科学与工程计算、大型数据库、监控中心等领域,性能需求高于编程代价,早在单核时代,就已经广泛采用单主机上的多CPU,乃至多主机集群的结构,自然也很早就开始使用并行程序——有单进程多线程的并行,有单机多进程的并行,还有多机多进程的并行。即使是使用多主机集群(Cluster)结构的场合,往往也欢迎多核CPU的到来,因为在一台主机的一个CPU中集成更多的核,就可以减少所需的主机总量,减少邻近核之间的通讯...
阅读全文