c - Raspberry Pi 上 C 程序的性能测量

标签 c performance raspberry-pi valgrind measurement

我的 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 可能会对您有所帮助。它需要一些工作来设置(内核模块)。

http://oprofile.sourceforge.net/examples/

关于c - Raspberry Pi 上 C 程序的性能测量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27060748/

相关文章:

java - 何时具体说明您想要的列表类型

c# - WindowsFormsApplicationBase 在 C# 命名空间中不存在?

c - 如何分析 C 语言中简单算法的效率

python - 如何使用pygame识别PS4 Controller 上按下的是哪个按钮

audio - Pyaudio声音质量问题

c - 如何 fork 多个 child 同时计算动态过程的多个时间步长

c - 使用 write 系统调用打印整数

c++ - 如何将 RTP 数据包与其他数据包分开

c - 结构返回并与 main 中的另一个函数进行比较

android - 将运行 Android Things 的 Raspberry Pi 连接到 wifi