Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do profilers need administrative privs (on Windows)

I've been evaluating profilers and memory checking tools for native C++ programs on Windows and all of them want to be installed and run with administrator privileges. I rarely log in as admin on my machine. If I need to install something or do something that requires administrative privileges, I use runas and it works pretty well.

Is it legitimate for a profiler to require admin privileges, or are the profiler developers just being lazy? Am I being unreasonable by rejecting all of these tools on this basis?

I'm developing with VS 2005 on an XP Pro machine.

like image 726
criddell Avatar asked Feb 12 '09 14:02

criddell


2 Answers

Because they have to look at other process' memory, which is normally taboo.

like image 73
Joel Coehoorn Avatar answered Sep 23 '22 18:09

Joel Coehoorn


some cpu profilers actually do a statistic averaging using OS interrupts... obviously they cannot do this without privileges for that :)

like image 30
gha.st Avatar answered Sep 25 '22 18:09

gha.st