我有一个C++项目,它使用特征矩阵库。为了提高性能,我需要得到它的配置文件。我尝试过使用gprof,但是配置文件包含一系列类似这样的结果,其中标记为自发性:
<spontaneous>
[1] 48.8 2535.09 38010.25 GaugeField::read_lime_gauge_field_doubleprec_timeslices(double*, char const*, long, long) [1]
20857.12 0.00 3419496363/5297636514 Eigen::internal::gebp_kernel<std::complex<double>, std::complex<double>, long, Eigen::internal::blas_data_mapper<std::complex<double>, long, 0, 0>, 1, 4, false, false>::operator()(Eigen::internal::blas_data_mapper<std::complex<double>, long, 0, 0> const&, std::complex<double> const*, std::complex<double> const*, long, long, long, std::complex<double>, long, long, long, long) [2]
5844.01 11309.11 3350517373/3366570904 Eigen::internal::gebp_kernel<std::complex<double>, std::complex<double>, long, Eigen::internal::blas_data_mapper<std::complex<double>, long, 0, 0>, 1, 4, true, false>::operator()(Eigen::internal::blas_data_mapper<std::complex<double>, long, 0, 0> const&, std::complex<double> const*, std::complex<double> const*, long, long, long, std::complex<double>, long, long, long, long) [4]
有时打电话给
Eigen
直接标记为自发性。
有什么方法可以让gprof从我的程序中提取更多有用的信息吗?