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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:49:41+00:00 2026-05-10T19:49:41+00:00

How is profiling different from logging? Is it just that profiling is used for

  • 0

How is profiling different from logging?

Is it just that profiling is used for performance measurements to see how long each function takes? Or am I off?

Typically, how are profiling libraries used?

What types of stats are obtained by profiling?

  • 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. 2026-05-10T19:49:41+00:00Added an answer on May 10, 2026 at 7:49 pm

    Logging tells you what happened. It’s great for forensics and debugging.

    Profiling quantifies that: it tells you how much time your code spent in each area, or how many times a body of code was executed. It helps you improve your code’s performance.

    Profiling typically operates at the level of a line of code, a function call, or sometimes a file. For each level, it can typically tell you:

    • How many times the unit was executed. It’s generally less important to optimize rarely-used code than code that executes millions of times. One exception is code that makes a user (or another process) wait for it to complete.

    • How many times a branch was taken, say in an if or switch statement. Again, you typically care most about optimizing often-used code.

    • How much time was spent in a particular function. Warning: even experienced developers are often surprised by these results. It’s very difficult to predict where your ‘time sinks’ are.

    • How much time was spent in a function and all functions called within that function. Maybe it’s not the function itself, but its children, that need optimizing.

    • How many times the unit was called by each caller. You may find that a particular function is called primarily from an unexpected place.

    Armed with the data from a good profiler, you can often gain significant improvements in performance with relatively little effort.

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

Sidebar

Ask A Question

Stats

  • Questions 77k
  • Answers 77k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I'm answering my own question in case someone finds this… May 11, 2026 at 3:28 pm
  • added an answer According to the ICU (International Components for Unicode), Java 6… May 11, 2026 at 3:28 pm
  • added an answer Name='theGraph' should be x:Name='theGraph' from http://msdn.microsoft.com/en-us/library/ms752059.aspx x:Name: Specifies a run-time… May 11, 2026 at 3:28 pm

Related Questions

I would like to be able to dynamically retrieve the current executing module or
I have a method that, given an angle for North and an angle for
I've been looking into different web statistics programs for my site, and one promising
How should exceptions be dispatched so that error handling and diagnostics can be handled

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.