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

  • SEARCH
  • Home
  • 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 8864993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:23:36+00:00 2026-06-14T16:23:36+00:00

I want to run both cProfiler (For time measurement, mainly) and also a memory

  • 0

I want to run both cProfiler (For time measurement, mainly) and also a memory profiler that I found here. However, both require the -m command line argument to be given, which doesn’t exactly play nicely.

Is there a way to have both running? All I’ve managed to do so far is get the interpreter yelling at me.

If you need any more information, let me know and I’ll do my best to provide it. Thanks in advance!

  • 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-06-14T16:23:37+00:00Added an answer on June 14, 2026 at 4:23 pm

    It is not possible to start two modules using two -m arguments. This is because the command line arguments after -m are all given to the named module as sys.argv. This is not described explicitly in the documentation but you can try it out experimentally.

    Create two python files a.py and b.py.

    Contents of a.py:

    print 'a'
    import sys
    print sys.argv
    

    Contents of b.py:

    print 'b'
    

    Now try to run both using two -m arguments:

    $ python -m a -m b
    

    Output:

    a
    ['/home/lesmana/tmp/a.py', '-m', 'b']
    

    As you can see module b is never started because the second -m is not handled by python. It is given to module a to handle.

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

Sidebar

Related Questions

I'm having two jquery's that I run and I want to combine them both
I have a Delphi XE2 Firemonkey application that I want to run on both
I have two * Servlet * and i want to run both Servlet on
I have a fairly simple iPhone application that I want to have run on
I want to run a query on both Oracle and SQL Server. The problem
I have a trigger that I want to run before insert a row into
I am creating app for android tab. i want to run in both Landscape
I have a sample TCP client and server application that I want to run
So I'm trying to create some scripts that I want to run without manually
I want run all script from the directory . Like , The directory contains

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.