0

我正在尝试使用 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]

有没有可能让它更精确地打印时间?

4

1 回答 1

0

我刚刚修改了源代码并重新编译了 binutils。那很简单=)

于 2012-09-12T14:34:00.167 回答