I'm developing an Android application and would like to know if there's a lot of resources (processor, memory) it needs while running. How can I detect the amount of resource usage?
I use Ksysguard to watch the various processes but Top is good, runs in a terminal & has an enormously (1957 line) comprehensive man page. This is in Linux of course. I guess that MS has similar apps.
Related
I know of the existence of nvvp and nvprof, of course, but for various reasons nvprof does not want to work with my app that involves lots of shared libraries. nvidia-smi can hook into the driver to find out what's running, but I cannot find a nice way to get nvprof to attach to a running process.
There is a flag --profile-all-processes which does actually give me a message "NVPROF is profiling process 12345", but nothing further prints out. I am using CUDA 8.
How can I get a detailed performance breakdown of my CUDA kernels in this situation?
As comments suggest, you simply have to make sure to start the CUDA profiler (now it's NSight Systems or NSight Compute, no longer nvprof) before the processes you want to profile. You could, for example, configure it to run on system startup.
Your inability to profile your application has nothing to do with it being an "app that involves lots of shared libraries" - the profiling tools profile such applications just fine.
I've been looking for the process attach solution too but found no existing tool.
A possible direction is to use lower CUDA API to build a tool or integrate to your tool. See cupti: https://docs.nvidia.com/cupti/r_main.html#r_dynamic_detach
Is this possible with Xamarin.IOS / monotouch to access the CPU usage stats?
I've searched for an API similar to what Android SDK makes accessible [/proc/stat] but found nothing, so I cannot integrate any line of code to monitor the CPU.
(I've gave a look at XCode Instruments but they are really resource consuming on my machine and slow down my application at such a point that I can't even interact with it. I have one line of code to monitor the global memory usage and would appreciate to only add a second line of code to monitor the CPU, instead of launching something throttled at 0.1 nanosecond that dumps 4GB of stock per second. I'm kidding a bit, but that summarizes my point.)
No. Apple does not provide any public APIs for this data.
Which would be the best option to profile a Node.js application on linux? I tried https://github.com/c4milo/node-webkit-agent and https://github.com/baryshev/look (this is based on nodetime), but they both seem pretty experimental. What surprises me the most is that the results reported by these tools are different.
The major disadvantages for look are that the heap snapshots aren't very relevant and you can't CPU profile for more than 1 minute.
With node-webkit-agent the Chrome browser is running out of memory.
I'm doing profiling while sending requests using JMeter to my web application.
Not sure if you're willing to use an online service instead of a module, but you could give http://nodefly.com/ a try, it's free and has worked quite good for me.
When my app is running in Windows 8 WINRT can I prevent the OS to go to locked screen/sleep mode?
You can use the DisplayRequest class to indicate that you are busy playing back something that requires the display to stay active and un-dimmed. A good how-to article with sample code is available here. Don't use it frivolously, it is quite detrimental to power consumption. Good odds that the Store will reject your app if you use it for no obvious benefit to the user.
You cannot prevent OS to go to lock screen/sleep/shut-down etc. If you want your application to run behind the scenes, you may want to create a Background Task application. You can find more information at: MSDN Link
We have developed a website that has quite a lot of flash in it and it seems to be hanging on some machines using firefox, these machines are a lower spec than our development machines and we cannot recreate the problem locally.
Ideally we want to somehow limit the CPU usage to maybe just a single core when browsing the website in the office so we can try and replicate the situation of our users.
Is there any way of doing this?
You can change the CPU affinity of the Browser and the flash plugin process. There are also some slowdown utilities that can emulate a slower CPU
http://www.classicdosgames.com/utilities.html
VMware will let you choose to run your machine in a configurable amount of cores and processors. As far as I can tell, it won't let you downclock. But going down to one core might do the trick for you.