C++库研究笔记[1] Profile->程序执行时间统计
来源:互联网 发布:化学查询软件下载 编辑:程序博客网 时间:2024/06/16 08:16
研究nvidia 的cusp 库,可见到这样的代码:
template <typename Array1, 380 typename Array2, 381 typename ScalarType> 382 void axpy(const Array1& x, 383 const Array2& y, 384 ScalarType alpha) 385 { 386 CUSP_PROFILE_SCOPED(); 387 detail::assert_same_dimensions(x, y); 388 cusp::blas::detail::axpy(x.begin(), x.end(), y.begin(), alpha); 389 }
这一行
386 CUSP_PROFILE_SCOPED();
即为时间统计
参考:
主要:
High Performance C++ Profiling :http://floodyberry.wordpress.com/2009/10/07/high-performance-cplusplus-profiling/
clock() 函数相当的严重不准确
Resolution Problems inclock()
:
http://www.guyrutenberg.com/2007/09/10/resolution-problems-in-clock/
Profiling Code Usingclock_gettime
- C++库研究笔记[1] Profile->程序执行时间统计
- C#: 统计method的执行时间
- C/C++ 程序执行时间
- c语言测试程序执行时间
- 【C语言】程序执行时间测量
- c语言测试程序执行时间
- C语言--计算程序执行时间
- c语言测试程序执行时间
- linux c代码 统计函数执行时间
- C语言中测试某个程序执行时间
- linux c 时间函数,获取程序执行时间
- C/C++程序中的profile
- go学习(七)——统计程序执行时间
- 程序执行时间
- 程序执行时间
- 统计sql语句执行时间
- 统计代码执行时间
- linux 函数执行时间统计
- 怎样建高效索引
- hdu1242 Rescue
- 【jiasuba】几招解决U盘没反应问题
- 非官方的很过分
- 非深入探寻Java反射机制 (Methods)
- C++库研究笔记[1] Profile->程序执行时间统计
- codeforces 166C Median - from lanshui_Yang
- poj3009
- C# 限制MDI窗口只能调用单实例子窗口
- JAVA实现Excel导入/导出
- UVA 846 - Steps(数学)
- 工业平板电脑的优势及其应用
- JavaWeb开发防止用户重复登录
- GPU方面的随笔记录