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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:17:52+00:00 2026-05-26T20:17:52+00:00

I have several large code bases which compile into dynamic libraries. I know that

  • 0

I have several large code bases which compile into dynamic libraries. I know that some of these have some very expensive dynamic global dynamic initializers. (That is, global instances of classes/structs which are very expensive to construct.)

I would like a way to view a list of what/where these dynamic initializers are in the code so I can see if they are expensive and need to be refactored. I’d like to avoid digging through a lot of assembly as some of these libraries are quite large and probably contain hundreds of dynamic initializers (many of them small and fairly cheap, like string construction).

Is there a tool that can help me with this? (My tool chain is Redhat Linux/gcc/cmake.)

  • 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-26T20:17:53+00:00Added an answer on May 26, 2026 at 8:17 pm

    How about running your code under valgrind’s callgrind tool, which will profile its execution (I am assuming when you said expensive you meant in terms of CPU, not I/O). Write a small test program which does nothing other than load these many things you are concerned about, and then analyze the profile (e.g. using the graphical tool kcachegrind on the callgrind output file).

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

Sidebar

Related Questions

I have a large class, which I have divided into several different class extension
We have a large C code base that has been developed over several decades.
I have several projects with a very large over-lapping code-base. We've just recently started
I have several large csv files with thousands of columns that I need to
I have several projects and a website in a large asp.net solution. In some
I have a large body of text which has several sentences wrapped in yada
I have been writing several class templates that contain nested iterator classes, for which
Where I work, we have a large codebase of C code that we build
I've got a very large and mature C++ code base that I'm trying to
I have a site that's growing large, and has very separate needs for different

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.