Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
ProfilerFunction Class Reference

#include <xpctools_private.h>

Collaboration diagram for ProfilerFunction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ProfilerFunction (const char *name, uintN lineno, uintn extent, size_t totalsize, ProfilerFile *file)
 ~ProfilerFunction ()
const char * GetName () const
ProfilerFileGetFile () const
uintN GetBaseLineNumber () const
uintN GetLineExtent () const
size_t GetTotalSize () const
void IncrementCallCount ()
PRUint32 GetCallCount ()
PRUint32 GetSum ()
void IncrementCompileCount ()
PRUint32 GetCompileCount ()
PRUint32 NowInMilliSecs ()
void SetStartTime ()
void SetEndTime ()
PRUint32 GetQuickTime ()
PRUint32 GetLongTime ()
 ProfilerFunction ()

Private Attributes

char * mName
uintN mBaseLineNumber
uintN mLineExtent
size_t mTotalSize
ProfilerFilemFile
PRUint32 mCallCount
PRUint32 mCompileCount
PRUint32 mQuickTime
PRUint32 mLongTime
PRUint32 mStartTime
PRUint32 mSum

Detailed Description

Definition at line 109 of file xpctools_private.h.


Constructor & Destructor Documentation

ProfilerFunction::ProfilerFunction ( const char *  name,
uintN  lineno,
uintn  extent,
size_t  totalsize,
ProfilerFile file 
)

Definition at line 113 of file nsXPCToolsProfiler.cpp.

    :   mName(name ? nsCRT::strdup(name) : nsnull),
        mBaseLineNumber(lineno),
        mLineExtent(extent),
        mTotalSize(totalsize),
        mFile(file),
        mCallCount(0),
        mCompileCount(0),
        mQuickTime((PRUint32) -1),
        mLongTime(0),
        mStartTime(0),
        mSum(0)
{
    // empty        
}

Definition at line 131 of file nsXPCToolsProfiler.cpp.


Member Function Documentation

Definition at line 119 of file xpctools_private.h.

{return mBaseLineNumber;}

Here is the caller graph for this function:

Definition at line 123 of file xpctools_private.h.

{return mCallCount;}

Here is the caller graph for this function:

Definition at line 126 of file xpctools_private.h.

{return mCompileCount;}

Here is the caller graph for this function:

Definition at line 118 of file xpctools_private.h.

{return mFile;}

Definition at line 120 of file xpctools_private.h.

{return mLineExtent;}

Here is the caller graph for this function:

Definition at line 143 of file xpctools_private.h.

{return mLongTime;}

Here is the caller graph for this function:

const char* ProfilerFunction::GetName ( ) const [inline]

Definition at line 117 of file xpctools_private.h.

{return mName;}

Here is the caller graph for this function:

Definition at line 142 of file xpctools_private.h.

{return mQuickTime;}

Here is the caller graph for this function:

Definition at line 124 of file xpctools_private.h.

{return mSum;}

Here is the caller graph for this function:

size_t ProfilerFunction::GetTotalSize ( ) const [inline]

Definition at line 121 of file xpctools_private.h.

{ return mTotalSize; }

Here is the caller graph for this function:

Definition at line 122 of file xpctools_private.h.

Here is the caller graph for this function:

Definition at line 125 of file xpctools_private.h.

Here is the caller graph for this function:

Definition at line 127 of file xpctools_private.h.

        {PRUint64 now64 = LL_INIT(0,1000);
         PRUint32 now32;
         LL_DIV(now64,PR_Now(),now64);
         LL_L2UI(now32, now64);
         return now32;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 135 of file xpctools_private.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 134 of file xpctools_private.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 149 of file xpctools_private.h.

Definition at line 153 of file xpctools_private.h.

Definition at line 154 of file xpctools_private.h.

Definition at line 152 of file xpctools_private.h.

Definition at line 150 of file xpctools_private.h.

Definition at line 156 of file xpctools_private.h.

char* ProfilerFunction::mName [private]

Definition at line 148 of file xpctools_private.h.

Definition at line 155 of file xpctools_private.h.

Definition at line 157 of file xpctools_private.h.

Definition at line 158 of file xpctools_private.h.

size_t ProfilerFunction::mTotalSize [private]

Definition at line 151 of file xpctools_private.h.


The documentation for this class was generated from the following files: