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 1068177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:15:11+00:00 2026-05-16T20:15:11+00:00

I run my project within VS and from time to time I run it

  • 0

I run my project within VS and from time to time I run it with VS profiler.

The question is how to detect the second case?

The reason: I would like to trigger GUI events from program when profiling — this way I would avoid manually clicking on widgets every time I do profiling. I am explaining this, because maybe is smarter way then detecting profiler and adding some “ifs”.

  • 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-16T20:15:11+00:00Added an answer on May 16, 2026 at 8:15 pm

    It sounds like you are trying to automate your application when it is being run under the profiler. The goal being to automate a certain set of actions you are interested in profiling. If so …

    I don’t know of a way to detect off hand if a process is running under the profiler. Any such detection would likely be flaky.

    A more reliable way to do this would be to simply add a parameter to your application which instructs it to automate the scenario. Then simply pass this parameter to the application when you are launching under the profiler (most allow you to pass options to the process). This will greatly simplify the scenario.

    An even better solution would be to write a second program whose sole purpose is to drive the application. This removes the test only code from your production application.

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

Sidebar

Related Questions

I'm having an issue when trying to run my project each time it builds.
I am trying to run an Ant task from within IBM RSA IDE using
We run a project in which we want to solve with test driven development.
I try to run my project in windows. Project use android ndk. I install
I'm trying to run a project which a friend of mine send me, but
Using VB 6 Once I run the project, How to display a previously selected
Im trying to connect my project via sFTP. and everytime I run the project
I am getting an error when i try to run my project ddms]ADB rejected
I have an ASP.NET project with outputType library, I need to run the project
I'm attempting to add a mirgration before I run my project. I get the

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.