20
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __ANALYZETOOLFASTLOG_H__
|
|
20 |
#define __ANALYZETOOLFASTLOG_H__
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <analyzetool/atcommon.h>
|
|
25 |
#include <analyzetool/analyzetooltraceconstants.h>
|
|
26 |
|
|
27 |
// Function prototypes.
|
|
28 |
|
|
29 |
/**
|
|
30 |
* TBD
|
|
31 |
* @param aProcessName The name of the new process started. The length of this
|
|
32 |
* descriptor must not be greater than KMaxProcessName.
|
|
33 |
* @param aProcessId The ID of the process started.
|
|
34 |
* @param aIsDebug Determines whether a binary is UDEB or UREL
|
|
35 |
* @return KErrNone.
|
|
36 |
*/
|
|
37 |
GLREF_C TInt ATFastLogProcessStarted( const TDesC8& aProcessName,
|
|
38 |
TUint aProcessId,
|
|
39 |
TUint32 aIsDebug );
|
|
40 |
|
|
41 |
/**
|
|
42 |
* TBD
|
|
43 |
* @param aProcessId The ID number of the process ended.
|
|
44 |
* @param aHandleLeakCount Number of handles open.
|
|
45 |
* @return KErrNone, if successful; otherwise one of the other
|
|
46 |
* system-wide error codes.
|
|
47 |
*/
|
|
48 |
GLREF_C TInt ATFastLogProcessEnded( TUint aProcessId,
|
|
49 |
TUint aHandleLeakCount );
|
|
50 |
|
|
51 |
/**
|
|
52 |
* TBD
|
|
53 |
* @param aProcessId The ID number of the process ended.
|
|
54 |
* @param aDllName The name of the new DLL loaded. The length of this descriptor
|
|
55 |
* must not be greater than KMaxLibraryName.
|
|
56 |
* @param aStartAddress The start address of the DLL loaded.
|
|
57 |
* @param aEndAddress The end address of the DLL loaded.
|
|
58 |
* @return KErrNone.
|
|
59 |
*/
|
|
60 |
GLREF_C TInt ATFastLogDllLoaded( TUint aProcessId, const TDesC8& aDllName, TUint32 aStartAddress,
|
|
61 |
TUint32 aEndAddress );
|
|
62 |
|
|
63 |
/**
|
|
64 |
* TBD
|
|
65 |
* @param aProcessId The ID number of the process ended.
|
|
66 |
* @param aDllName The name of the DLL to be unloaded. The length of this
|
|
67 |
* descriptor must not be greater than KMaxLibraryName.
|
|
68 |
* @param aStartAddress The start address of the DLL to be unloaded.
|
|
69 |
* @param aEndAddress The end address of the DLL to be unloaded.
|
|
70 |
* @return KErrNone.
|
|
71 |
*/
|
|
72 |
GLREF_C TInt ATFastLogDllUnloaded( TUint aProcessId, const TDesC8& aDllName, TUint32 aStartAddress,
|
|
73 |
TUint32 aEndAddress );
|
|
74 |
|
|
75 |
/**
|
|
76 |
* TBD
|
|
77 |
* @param aProcessId The ID number of the process ended.
|
|
78 |
* @param aMemAddress The memory location where memory has been allocated.
|
|
79 |
* @param aCallstack An array including the current call stack.
|
|
80 |
* @param aSize The size of the newly allocated memory chunk.
|
|
81 |
* @return KErrNone.
|
|
82 |
*/
|
|
83 |
GLREF_C TInt ATFastLogMemoryAllocated( TUint aProcessId, TUint32 aMemAddress,
|
|
84 |
TFixedArray<TUint32, KATMaxCallstackLength>& aCallstack,
|
|
85 |
TInt aSize );
|
|
86 |
|
|
87 |
/**
|
|
88 |
* TBD
|
|
89 |
* @param aProcessId The ID number of the process ended.
|
|
90 |
* @param aMemAddress The memory location where memory has been deallocated.
|
|
91 |
* @param aFreeCallstack An array including the current call stack.
|
|
92 |
* @return KErrNone.
|
|
93 |
*/
|
|
94 |
GLREF_C TInt ATFastLogMemoryFreed( TUint aProcessId, TUint32 aMemAddress,
|
|
95 |
TFixedArray<TUint32, KATMaxFreeCallstackLength>& aFreeCallstack );
|
|
96 |
#endif
|