Back to index

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

#include <xpctools_private.h>

List of all members.

Public Member Functions

 ProfilerFile (const char *filename)
 ~ProfilerFile ()
ProfilerFunctionFindOrAddFunction (const char *aName, uintN aBaseLineNumber, uintN aLineExtent, size_t aTotalSize)
void EnumerateFunctions (nsHashtableEnumFunc aEnumFunc, void *closure)
const char * GetName () const
 ProfilerFile ()

Private Attributes

char * mName
nsHashtable * mFunctionTable

Detailed Description

Definition at line 89 of file xpctools_private.h.

Constructor & Destructor Documentation

ProfilerFile::ProfilerFile ( const char *  filename)

Definition at line 69 of file nsXPCToolsProfiler.cpp.

    :   mName(filename ? nsCRT::strdup(filename) : nsnull),
        mFunctionTable(new nsHashtable(16, PR_FALSE))
    // empty

Definition at line 76 of file nsXPCToolsProfiler.cpp.

Member Function Documentation

void ProfilerFile::EnumerateFunctions ( nsHashtableEnumFunc  aEnumFunc,
void closure 

Definition at line 104 of file nsXPCToolsProfiler.cpp.

        mFunctionTable->Enumerate(aEnumFunc, closure);

Here is the caller graph for this function:

ProfilerFunction * ProfilerFile::FindOrAddFunction ( const char *  aName,
uintN  aBaseLineNumber,
uintN  aLineExtent,
size_t  aTotalSize 

Definition at line 85 of file nsXPCToolsProfiler.cpp.

        return nsnull;
    FunctionKey key(aBaseLineNumber, aLineExtent);
    ProfilerFunction* fun = (ProfilerFunction*) mFunctionTable->Get(&key);
        fun = new ProfilerFunction(aName, aBaseLineNumber, aLineExtent,
                                   aTotalSize, this);
            mFunctionTable->Put(&key, fun);
    return fun; 

Here is the caller graph for this function:

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

Definition at line 101 of file xpctools_private.h.

{return mName;}

Here is the caller graph for this function:

Member Data Documentation

nsHashtable* ProfilerFile::mFunctionTable [private]

Definition at line 106 of file xpctools_private.h.

char* ProfilerFile::mName [private]

Definition at line 105 of file xpctools_private.h.

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