title: Writing a kernel mode profiler for processes in python
body: <p>I would like seek some guidance in writing a "process profiler" which runs in kernel mode. I am asking for a kernel mode profiler is because I run loads of applications and I do not want my profiler to be swapped out.</p>
  
  <p>When I said "process profiler" I mean to something that would monitor resource usage by the process. including usage of threads and their statistics.</p>
  
  <p>And I wish to write this in python. Point me to some modules or helpful resource.</p>
  
  <p>Please provide me guidance/suggestion for doing it.</p>
  
  <h2>Thanks,</h2>
  
  <p>Edit::: Would like to add that currently my interest isto write only for linux. however after i built it i will have to support windows.</p>