30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 158: Tools > Debugger<br />

Loaded Libraries Dialog<br />

Box<br />

Fine-Tuning Shared Library Use<br />

Fine-Tuning Shared Library Use<br />

When <strong>TotalView</strong> encounters a reference to a shared library, it normally reads<br />

all of that library’s symbols. In some cases, you might need to explicitly<br />

read in this library’s information before <strong>TotalView</strong> automatically reads it.<br />

On the other hand, you may not want <strong>TotalView</strong> to read and process a<br />

library’s loader and debugging symbols. In most cases, reading these symbols<br />

occurs quickly. However, if your program uses large libraries, you can<br />

increase performance by telling <strong>TotalView</strong> not to read these symbols.<br />

For more information, see “Preloading Shared Libraries” on page 245 and<br />

“Controlling Which Symbols <strong>TotalView</strong> Reads” on page 246.<br />

Preloading Shared Libraries<br />

As your program executes, it can call the dlopen() function to access code<br />

contained in shared libraries. In some cases, you might need to do something<br />

from within <strong>TotalView</strong> that requires you to preload library information.<br />

For example, you might need to refer to one of a library’s functions in an<br />

eval point or in a Tools > Evaluate command. If you use the function’s<br />

name before <strong>TotalView</strong> reads the dynamic library, <strong>TotalView</strong> displays an<br />

error message.<br />

Use the Tools > Debugger Loaded Libraries command to tell the debugger<br />

to open a library.<br />

CLI: ddlopen<br />

This CLI command gives you additional ways to control how a<br />

library’s symbols are used.<br />

After selecting this command, <strong>TotalView</strong> displays the following dialog box:<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 245

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!