我的 C 程序(一个简单的 PolarSSL 客户端)在 Raspberry Pi 上运行。 我想测量此客户端的 RAM 使用情况和 CPU 时序。 Valgrind 不适用于 Raspberry Pi。相反,它抛出以下异常:
==3199== valgrind: Unrecognised instruction at address 0x4843588.
==3199== at 0x4843588: ??? (in /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so)
据我所知,这个异常是 Valgrind on the Raspberry 的一个众所周知的问题。
我该怎么做才能解决这个问题?
最佳答案
就性能而言,oprofile
可能会对您有所帮助。它需要一些工作来设置(内核模块)。
关于c - Raspberry Pi 上 C 程序的性能测量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27060748/