perfsrv/analyzetool/dynamicmemoryhook/inc/analyzetoolmainallocator.inl
changeset 51 98307c651589
equal deleted inserted replaced
42:0ff24a8f6ca2 51:98307c651589
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Definition for the inline functions of RAnalyzeToolMainAllocator.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "analyzetoolmemoryallocator.h"
       
    20   
       
    21 // -----------------------------------------------------------------------------
       
    22 // RAnalyzeToolMainAllocator::Codeblocks()
       
    23 // Acquires reference to process used codeblocks
       
    24 // -----------------------------------------------------------------------------
       
    25 //  
       
    26 inline RArray<TCodeblock>& RAnalyzeToolMainAllocator::Codeblocks()
       
    27     {
       
    28     return iCodeblocks;
       
    29     }
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // RAnalyzeToolMainAllocator::Mutex()
       
    33 // Acquires reference to mutex which is used to share resources
       
    34 // -----------------------------------------------------------------------------
       
    35 //  
       
    36 inline RMutex& RAnalyzeToolMainAllocator::Mutex()
       
    37     {
       
    38     return iMutex;
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // RAnalyzeToolMainAllocator::ProcessId()
       
    43 // Acquires the process id
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 inline TInt RAnalyzeToolMainAllocator::ProcessId()
       
    47     {
       
    48     return iProcessId;
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // RAnalyzeToolMainAllocator::AnalyzeTool()
       
    53 // Acquires the logical channel handle
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 inline RAnalyzeTool& RAnalyzeToolMainAllocator::AnalyzeTool()
       
    57     {
       
    58     return iAnalyzeTool;
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // RAnalyzeToolMainAllocator::LogOption()
       
    63 // Acquires the iLogOption variable
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 inline TUint32 RAnalyzeToolMainAllocator::LogOption()
       
    67     {
       
    68     return iLogOption;
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // RAnalyzeToolMainAllocator::AllocMaxCallStack()
       
    73 // Acquires the iAllocMaxCallStack variable
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 inline TUint32 RAnalyzeToolMainAllocator::AllocMaxCallStack()
       
    77     {
       
    78     return iAllocMaxCallStack;
       
    79     }
       
    80 // -----------------------------------------------------------------------------
       
    81 // RAnalyzeToolMainAllocator::FreeMaxCallStack()
       
    82 // Acquires the iFreeMaxCallStack variable
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 inline TUint32 RAnalyzeToolMainAllocator::FreeMaxCallStack()
       
    86     {
       
    87     return iFreeMaxCallStack;
       
    88     }
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // RAnalyzeToolMainAllocator::LogFile()
       
    92 // Acquires the iLogFile variable
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 inline RATFileLog& RAnalyzeToolMainAllocator::LogFile()
       
    96 	{
       
    97 	return iLogFile;
       
    98 	}
       
    99 // End of File