Optimizing Linux® Performance [Electronic resources] : A Hands-On Guide to Linux® Performance Tools نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Optimizing Linux® Performance [Electronic resources] : A Hands-On Guide to Linux® Performance Tools - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








12.4. Configure the Application for the Performance Hunt


The next step in the investigation is to set up the application for the performance hunt. prelink is a small and self-contained application. In fact, it does not even use any shared libraries. (It is statically linked.) However, it is a good idea to recompile it with all the symbols so that we can examine it in the debugger (gdb) if we need to. Again, this tool uses the configure command to generate the makefiles. We must download the source to prelink and recompile it with symbols. We can once again download the source rpms for prelink from Red Hat. The source will be installed in /usr/src/redhat/SOURCES. Once we unpack prelink's source code, we compile it as shown in Listing 12.6.


Listing 12.6.


env CFLAGS=-g3 ./configure
gmake

After prelink is configured and compiled, we can use the binary we compiled to investigate the performance problems.


/ 132