Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Using DTrace to Profile and Debug A C++ Program (Technical Article)

In this test case, the DTrace capability in the Solaris 10 OS is used to identify an error common to C++ applications -- the memory leak.

Tutorial Details:

A sample program CCtest was created to demonstrate an error common to C++ applications -- the memory leak. In many cases, a memory leak occurs when an object is created, but never destroyed, and such is the case with the program contained in this article.

The examples in this article demonstrate the use of the DTrace feature in the Solaris 10 Operating System to diagnose C++ application errors. These examples are also used to compare DTrace with other application debugging tools, including Sun Studio 10 software and mdb in the Solaris 10 OS.

C++ Name Mangling

When debugging a C++ program, you may notice that your compiler converts C++ class names into mangled, semi-intelligible strings of characters and digits. This name mangling is an implementation detail required for support of C++ class overloading and is used to uniquely identify the multiple invocations of your constructors and class functions.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Using DTrace to Profile and Debug A C++ Program (Technical Article)

View Tutorial:
Using DTrace to Profile and Debug A C++ Program (Technical Article)

Related Tutorials:

Displaying 1 - 50 of about 3632 Related Tutorials.

Uploading Employee Profile with image
Uploading Employee Profile with image Uploading Employee Profile with image      ... you to understand how you can upload multiple files by using the Jsp. We should
 
C/C++ Programming Books
level the layout of a C program may surprise you. If your experience lies... C/C++ Programming Books C/C++ Programming...;    Visual C++ 6 Unleashed
 
Java vs. C
of the lack of complete type definitions, moving a C/C++ program from one machine... Java: Java vs. C Java: Java vs. C Is Java easier or harder than C? Java is harder because
 
C and C++ books-page1
C and C++ books-page1 C and C++ books-page1...; The C Books This is the online version of The C Book, second... is no longer in print, it's content is still very relevant today. The C language
 
C and C++ books
powerful C++ language feature. This article does not teach you the syntax... and calling functions. Program flow is controlled using loops, if statements... C and C++ books C and C++ books
 
C and C++ books-page8
Program Welcome to Learning GNU C. The aim of this book is to teach GNU users... C and C++ books-page8 C and C++ books-page8...; The ODBC from C Tutorial  In this section for example-based C
 
Objective C on Windows
compiler. On windows GNU C compiler can be used to compile the Objective C program.... GNUset is objective c compiler for windows, that we will be using in our tutorial... the GNUsetp to compile and run Objective C program on your windows system
 
EasyEclipse for C and C++
, tests and debug and C and C++ applications and programs - Getting... Eclipse Plugin-Language EasyEclipse for C and C...;   EasyEclipse for C and C++ is all you need to start
 
Create URL using tag of JSTL Core tag library
Create URL using <c:url> tag of JSTL Core tag library Create URL using <c:url> tag of JSTL Core tag library... given parameter by using <c:url> tag.        
 
in JSTL
numbers by using the <c: out> core action tag. The code of the example... by using c: out</title> </head> <body bgcolor="#FFFFCC"> <h1>Simple Calculation by using c: out</h1> <%-- Multiplying
 
Catching Exception using c: catch and c:set
Catching Exception using c: catch and c:set Catching Exception using c: catch and c:set   .... Then then is one tag provided to you that is <c:catch> which is one of the tag of core
 
Using tag of Core JSTL tags
Using tag <c:redirect> of Core JSTL tags Using tag <c:redirect> of Core JSTL tags     ... used Core JSTL tag <c:redirect> that is used to redirect the page
 
Using tag of Core JSTL tags
Using <c:forEach> tag of Core JSTL tags Using <c:forEach> tag of Core JSTL tags     ... used Core JSTL tag <c:forEach> that is used to get values from an array
 
Creating URL using
Creating URL using <c:url> Creating URL using... the <c: url> core action tag. By using the <c: url> we are doing the URL rewriting but by using the <c: param> core action tag inside the <c
 
JSTL c:catch with c:if
we handle the exception by using the <c: if> tag. In this example firstly... and exception otherwise no exception. For this we are also using <c:choose> tag...>Catching Exception by using c:if</title> </head> <body
 
JSTL with
application. But by using the jstl <c:import> we can also include those contents... JSTL <c:import> with <c:param> JSTL <c:import> with <c:param>   
 
attribute escapeXml
a core action tag <c: set> with a body. We are using this tag to differentiate... <c: out> attribute escapeXml <c: out>... purpose core library tag is <c: out>. The main function of the this tag
 
Conditional Include with
a program on if statement using jstl library, in which we are going to print "... Conditional Include with <c:if> Conditional Include with <c:if>      
 
C and C++ books-page3
must start writing C programs as quickly as possible. A  C program... one how to program in C, nor will it attempt to provide the history of C... C and C++ books-page3 C and C++ books-page3
 
Comparing Two String with
made a program on if statement using jstl library, in which we are going to print.... In this program we are making use of <c:set var = str value= "... of the <c: if> tag checks the condition.  The code of the program
 
Nested in JSTL
of using those hardcoded scriptlet, It allows you to program your pages using tags. While using the scriptlet, as the program grows bigger it becomes difficult... Nested <c:forEach> in JSTL Nested <c
 
J2EE Web Service Development with Attachments Using Axis
developed in C# in the .NET world. Using DIME attachments we can send various... Devlopment with Attachments Using Axis J2EE Web Service Development with Attachments Using Axis
 
in JSTL
hardcoded scriptlet, It allows you to program your pages using tags. While using... comes the use of the JSTL, which allows you to program the pages using tags... <c:forEach> in JSTL <c:forEach>
 
JSTL
that is <c:if>, which we are using to check the condition.  The code... JSTL <c: catch> JSTL <c: catch>... from that solution by yourself. Then then is one tag provided to you that is <c
 
For Simple Calculation and Output
="c" %> <html> <head> <title>Adding numbers by using c... <c: out> For Simple Calculation and Output <c: out> For Simple Calculation and Output   
 
Update Profile
Update Profile,Application Update Profile,Update form example Update Profile      ...;        The Update Profile page allows
 
C and C++ books-page4
C and C++ books-page4 C and C++ books-page4... An array in C is a region of memory in which the elements (chars, ints, etc.) can be accessed using an index (in a 1-dimensional array, e.g. name[0]) or several
 
Catching Exception usin c: catch
Catching Exception using c: catch Catching Exception usin c: catch        ... provided to you that is <c:catch> which is one of the tag of core action library
 
JSTL
JSTL <c:import>  JSTL <c:import>...;      The disadvantage of using the <... or files which are the part of the current web application. But by using
 
Create First Program
;} } Download this example. Save this program in the specified directory ("C...;. Output of program: C:\vinod>javac createfirstprogram.java... Create First Program in Java Create First Program
 
in JSTL
of the URL.  We can do the same thing by using the <c: url> core action tag. By using the <c: url> we are doing the URL rewriting but by using... <c: url> in JSTL <c: url> in JSTL
 
J2EE Web Service Development with Attachments Using Axis
developed in C# in the .NET world. Using DIME attachments we can send various... Devlopment with Attachments Using Axis J2EE Web Service Development with Attachments Using Axis
 
Facelet debug Tag
Facelet debug Tag Facelet debug Tag... is pressed, debug window is open which displays the component tree and scoped.../debug/debugtemplate.xhtml">       
 
For C++ programmers
Java: For C++ programmers Java NotesFor C++ programmers Java inherited many features from C... always start with an upper case character, Methods (called functions in C
 
J2ME Books
with the Mobile Information Device Profile (MIDP). With labs. Published... Information Device Profile (MIDP), which this text centers on, plus the Connected...; Developing Jini Applications Using J2ME Technology
 
Objective C Hello World
objective-c program ?hello.m?     This is a simple program to print... this program with .m extension here 'hello.m' in newly created directory c:/objectiveC... Objective C Hello World Objective C Hello World
 
Compiling Objective C
program on windows and Max OS x machine. Compiling Objective C program is necessary as it generates the executable program that can run. Compiling Objective C... the following command.     $ cd c:/objectiveC To compile program
 
Objective C on Mac
and run Objective C program on Mac machine. Compiling Objective C on Mac OS x To Compile Objective-C Programs on Mac OS X This is a simple process to compile... Objective C on Mac, Objective C Mac Objective C
 
WEBSERVICE USING APACHE AXIS TUTORIAL-2 UNDERSTANDING APACHE AXIS (part-2)
WEBSERVICE USING APACHE AXIS TUTORIAL-2 UNDERSTANDING APACHE AXIS WEBSERVICE USING APACHE AXIS   TUTORIAL-2 ... in WebLogic Server.Let us begin by creating our working folder as  c:\sam. We
 

<c:forTokens> <c:forTokens>...;   <c:forTokens items="${requestScope.tokenising}" delims... of javax.servlet.jsp.jstl.core.LoopTagStatus.   The code of the program is given below
 
Objective C Tutorial
will create a simple objective-c program, set the environment for the code... Objective C Tutorial,Objective C Tutorials Objective C Tutorial        
 
Create a Java program using XSLT APIs
Create a Java program using XSLT APIs Create a Java program using XSLT APIs        ...;} } This program uses three arguments to take inputs from the command line: arg[0
 
Why Objective C?
of ANSI C so the existing C program can be use with the framework without loosing any... be postponed until the program is running. Objective-C?s dynamism has two major... Why Objective C? Why Objective C
 
Open Source c++
Open Source C++ Open Source c++ Open Source C... are shipped with C (sometimes Visual Basic or Pascal) interface. However, very few manufacturers provide true object oriented C++ interfaces, despite the fact that most
 
C# Programming Books
, and Microsoft has even written a majority of the .NET Framework using C#. C... The first function to be called in any C# program is Main. Obviously someone... C# Programming Books C# Programming Books
 
Shifting Row Using JSP
to shift the row using java program. Code description : The packages we need... How we can set alignment using jsp for excel Shifting row using JSP       
 
WEBSERVICE USING APACHE AXIS - TUTORIAL-2 AXIS FOR EJB-WEBSERVICE (part-5)
using Axis. This is a 7 part article.?  part-1 : Overview part-2 : deploying... a console-mode program in c:\sam  , as usual.  // c:\sam...;+e1);? } ??? } } After compiling , we run the program as usual: c:\sam>
 
How to Java Program
How to Java Program How to Java Program... language. This feature of Java helps us in making a program that can run independently... without recompiling the source code. For a Beginners, want to start on java Program
 
Open Source program
, WAV, etc), digitized voice, and so on, using C, C++, Pascal and possibly other... Open Source Program Open Source program... ('unlimited undo'); Snd can be customized using an Emacs-lisp-like syntax; it can also
 
Controlling your program
; } Then the program prints the output like :  C:\chandan>... Controlling your program Controlling your program...;  We all know that the execution of the statements in a program
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.