profem cpu实时使用DSP对象
我们的应用程序我们的应用程序基于DSP合成器,主要用于创建用C语言编写的音乐,并且我想创建一个全系统功能,以向用户提供视觉反馈,以便他们可以找出哪些DSP对象是最含CPU的对象。
我研究了很多,但找不到实现此功能的方法。
谁能指导我如何实现此功能?
我只希望有人将我指向正确的方向!!
谢谢,
我试图了解Windows任务管理器的工作原理以及Linux中的PS命令的工作方式...
我还研究了Win32API,但它们都显示当前正在运行的过程,我的任务是查找当前DSP对象的CPU使用情况在使用中...
我的天真方法将涉及计算物体方法中的CPU周期
Our Application is based of DSP synthesizer mostly used to create music, written in C Language, and I want to create a system-wide feature to give visual feedback to the user so they can find out which DSP objects are the most CPU-hungry.
I researched a lot but I can't find a way to do implement this feature.
Can anyone guide me how can I implement this feature?
I just want someone to point me in the right direction!!
Thanks in Advance
I have tried to understand how Windows Task Manager works and how ps command in Linux works...
I also looked into Win32API but they all just show currently running processes, and My task is to find the CPU usage of DSP objects currently in use...
my naive approach would involve counting CPU cycles in each method of the object, but I have no idea if thats even the right place to start thinking about it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那又如何:测量每个块要做事情的时间?
调度程序在DSP图中调用每个Persion-Routine。
因此,您只需要测量表演范围返回所需的时间即可。
所需的时间越长,对象渴望CPU(最终将值缩放到块大小))
how about this: measure the time each block takes to do its thing?
the scheduler calls each perform-routine in the DSP graph.
so you just need to measure the time it takes for the perform-routine to return.
the longer it takes, the more CPU-hungry the object is (eventually scale the values by the block size)