摘要:        
Cachegrind: Cachegrind通过模拟cpu的1,3级缓存,收集应用程序运行时关于cpu的一些统计数据,最后在将明细数据和汇总信息打印出来。 1. 以下是cpu统计数据的一些术语缩写: I cache reads (Ir, which equals the number of instructions executed), I1 cache read misses (I1mr) and LL cache instruction read misses (ILmr). D cache reads (Dr, which equals the number of memory read    阅读全文
posted @ 2011-06-05 21:54
OrangeAdmin
阅读(1747)
评论(0)
推荐(1)
        
            
        
        
摘要:        
一、Memcheck-tools 1. 可查找的错误类型: 1) Illegal read or write errors --read-var-info=<yes|no> [default:no],如果这个选项被打开,应用程序将运行的更慢,但是能够给出能多的错误细节。如下: --read-var-info=no ==15516== Uninitialised byte(s) found during client check request ==15516== at 0x400633: croak (varinfo1.c:28) ==15516== by 0x4006B2: ma    阅读全文
posted @ 2011-06-05 21:48
OrangeAdmin
阅读(3182)
评论(0)
推荐(1)
        
            
        
        
摘要:        
九、部分记录读取和存储1. 在进行数据操作的时候需要为DB->put() or DB->get()的DBT data参数的flags字段设定DB_DBT_PARTIAL标志。同时还要指定doff(偏移量)和dlen(长度)。如"ABCDEFGHIJ",如果doff=3 and dlen=4,其所操作的字符串为"DEFG"。在进行数据部分替换的时候,DB->put()将使用data的data字段和size字段表示的数据替换其doff字段和dlen字段所包含的数据,如果size大于ulen,该key的data item将增大,否则data     阅读全文
posted @ 2011-06-05 21:01
OrangeAdmin
阅读(1757)
评论(0)
推荐(1)
        
                    
                
浙公网安备 33010602011771号