Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 216267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:32:55+00:00 2026-05-11T18:32:55+00:00

I would like seek some guidance in writing a process profiler which runs in

  • 0

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.

When I said “process profiler” I mean to something that would monitor resource usage by the process. including usage of threads and their statistics.

And I wish to write this in python. Point me to some modules or helpful resource.

Please provide me guidance/suggestion for doing it.

Thanks,

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:32:55+00:00Added an answer on May 11, 2026 at 6:32 pm

    It’s going to be very difficult to do the process monitoring part in Python, since the python interpreter doesn’t run in the kernel.

    I suspect there are two easy approaches to this:

    1. use the /proc filesystem if you have one (you don’t mention your OS)
    2. Use dtrace if you have dtrace (again, without the OS, who knows.)

    Okay, following up after the edit.

    First, there’s no way you’re going to be able to write code that runs in the kernel, in python, and is portable between Linux and Windows. Or at least if you were to, it would be a hack that would live in glory forever.

    That said, though, if your purpose is to process Python, there are a lot of Python tools available to get information from the Python interpreter at run time.

    If instead your desire is to get process information from other processes in general, you’re going to need to examine the options available to you in the various OS APIs. Linux has a /proc filesystem; that’s a useful start. I suspect Windows has similar APIs, but I don’t know them.

    If you have to write kernel code, you’ll almost certainly need to write it in C or C++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently ran across some code which the person did the first one. Would
I'd like to seek some help with the DPOTRS function from LAPACK when being
I have a scenario where I would like to filter some entity sets at
In our iPad app, we would like to not allow the users to seek
How can I seek those rows which contain some text and get a mark
Would like to be able to set colors of headings and such, different font
Would like to know what a programmer should know to become a good at
Would like to make anapplication in Java that will not automatically parse parameters used
Would like to know the c# code to actually retrieve the IP type: Static
Would like to know how to integarate cruise control with maven? Cruise Control comes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.