我正在尝试使用gprof来分析opengl应用。 由于主绘制函数在一秒钟内被调用数十次,因此在特定功能中花费的时间很少。 gprof输出包含格式为“%。2f”的时间,几乎所有时间都等于0.00:
[4] 35.2 0.00 0.06 9414 AbstractLayer::render(IDrawContext&) [4]
0.00 0.02 1046/1046 SimpleTiledImageLayer::doRender(IDrawContext&) [9]
0.00 0.02 1046/1046 AtmosphereLayer::doRender(IDrawContext&) [10]
0.00 0.01 1046/1046 GeographicObjectLayer::doRender(IDrawContext&) [23]
0.00 0.01 1046/1046 POILayer::doRender(IDrawContext&) [27]
是否有可能更精确地打印时间?
答案 0 :(得分:0)
我刚刚修改了源代码并重新编译了binutils。这很简单=)