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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:48:19+00:00 2026-06-09T07:48:19+00:00

I had a little surprise after profiling my program with oprofile. The profile shows

  • 0

I had a little surprise after profiling my program with oprofile.

The profile shows that my program spend 85% in _fini:

CPU: Intel Core/i7, speed 1199 MHz (estimated) Counted
CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit
mask of 0x00 (No unit mask) count 100000 samples % image name
symbol name 553519 85.7402 eddic _fini

The other symbols looks good.

My program is compiled with GCC 4.7.

From what I understand, the symbol _fini is a deprecated construct for global destruction, so I don’t get why my program spend so much time in this symbol.

Can that result from a bad configuration of oprofile or of GCC ?

I tried to profile the unoptimized code and the problem is not present. There are no such symbol with no optimizations.

Is there a way to fix the profile or to avoid spend so much time in _fini ?

I can’t paste my paste as it very very long, I didn’t isolate the problem.

Thanks for any idea

  • 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-09T07:48:21+00:00Added an answer on June 9, 2026 at 7:48 am

    without seeing the code in question is really hard to suggest where the problem lies, but the _fini time suggests destructors for global variables (or static function variables which also exist for the duration of the program). I would suggest
    – that you inspect the classes of all your global+static variables and see what their destructors are doing
    – comment out functionality in your program until that stops happening to give you a hint of where it is spending its time
    – Use gdb or another debugger to inspect what is happening at _fini.

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

Sidebar

Related Questions

A little knowledge can be a dangerous thing. Now that I've had a run
I just had a little surprise in a Webapp, where I'm using EL in
I had little knowledge about mixing events and threads. The scenario is that there
I had this weird problem a little while ago and haven't been able to
I am a little rusty with QT but I've had to use it for
I am learning C# and WPF and had an idea for a little utility.
I had a Invalid Cross Thread access issue, but a little research and I
I have a little problem. I had some JComboBox to a JDialog but they
I've been using prepared statements for a little while now and I've never had
I've messed with Access a little bit in the past, had one class on

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.