|
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 const TDesC8& aAtoolVersion, |
|
41 const TDesC8& aApiVersion ); |
|
42 |
|
43 /** |
|
44 * TBD |
|
45 * @param aProcessId The ID number of the process ended. |
|
46 * @param aHandleLeakCount Number of handles open. |
|
47 * @return KErrNone, if successful; otherwise one of the other |
|
48 * system-wide error codes. |
|
49 */ |
|
50 GLREF_C TInt ATFastLogProcessEnded( TUint aProcessId, |
|
51 TUint aHandleLeakCount ); |
|
52 |
|
53 /** |
|
54 * TBD |
|
55 * @param aProcessId The ID number of the process ended. |
|
56 * @param aDllName The name of the new DLL loaded. The length of this descriptor |
|
57 * must not be greater than KMaxLibraryName. |
|
58 * @param aStartAddress The start address of the DLL loaded. |
|
59 * @param aEndAddress The end address of the DLL loaded. |
|
60 * @return KErrNone. |
|
61 */ |
|
62 GLREF_C TInt ATFastLogDllLoaded( TUint aProcessId, const TDesC8& aDllName, TUint32 aStartAddress, |
|
63 TUint32 aEndAddress ); |
|
64 |
|
65 /** |
|
66 * TBD |
|
67 * @param aProcessId The ID number of the process ended. |
|
68 * @param aDllName The name of the DLL to be unloaded. The length of this |
|
69 * descriptor must not be greater than KMaxLibraryName. |
|
70 * @param aStartAddress The start address of the DLL to be unloaded. |
|
71 * @param aEndAddress The end address of the DLL to be unloaded. |
|
72 * @return KErrNone. |
|
73 */ |
|
74 GLREF_C TInt ATFastLogDllUnloaded( TUint aProcessId, const TDesC8& aDllName, TUint32 aStartAddress, |
|
75 TUint32 aEndAddress ); |
|
76 |
|
77 /** |
|
78 * TBD |
|
79 * @param aProcessId The ID number of the process ended. |
|
80 * @param aMemAddress The memory location where memory has been allocated. |
|
81 * @param aCallstack An array including the current call stack. |
|
82 * @param aSize The size of the newly allocated memory chunk. |
|
83 * @param aThreadId ID of the thread |
|
84 * @return KErrNone. |
|
85 */ |
|
86 GLREF_C TInt ATFastLogMemoryAllocated( TUint aProcessId, TUint32 aMemAddress, |
|
87 TFixedArray<TUint32, KATMaxCallstackLength>& aCallstack, |
|
88 TInt aSize, TUint aThreadId ); |
|
89 |
|
90 /** |
|
91 * TBD |
|
92 * @param aProcessId The ID number of the process ended. |
|
93 * @param aMemAddress The memory location where memory has been deallocated. |
|
94 * @param aFreeCallstack An array including the current call stack. |
|
95 * @param aThreadId ID of the thread |
|
96 * @return KErrNone. |
|
97 */ |
|
98 GLREF_C TInt ATFastLogMemoryFreed( TUint aProcessId, TUint32 aMemAddress, |
|
99 TFixedArray<TUint32, KATMaxFreeCallstackLength>& aFreeCallstack, |
|
100 TUint aThreadId ); |
|
101 |
|
102 /** |
|
103 * TBD |
|
104 * @param aProcessId The ID number of the process ended. |
|
105 * @param aMemAddressFree The memory location where memory has been deallocated. |
|
106 * @param aMemAddressAlloc The memory location where memory has been allocated. |
|
107 * @param aFreeCallstack An array including the current call stack. |
|
108 * @param aThreadId ID of the thread |
|
109 * @return KErrNone. |
|
110 */ |
|
111 GLREF_C TInt ATFastLogMemoryReallocated( TUint aProcessId, TUint32 aMemAddressFree, TUint32 aMemAddressAlloc, |
|
112 TFixedArray<TUint32, KATMaxCallstackLength>& aCallstack, |
|
113 TInt aSize, TUint aThreadId ); |
|
114 |
|
115 /** |
|
116 * TBD |
|
117 * @param aProcessId The ID number of the process ended. |
|
118 * @param aThreadID An ID of the new thread started |
|
119 * @return KErrNone. |
|
120 */ |
|
121 GLREF_C TInt ATFastLogThreadStarted( TUint aProcessId, TUint aThreadId ); |
|
122 |
|
123 /** |
|
124 * TBD |
|
125 * @param aProcessId The ID number of the process ended. |
|
126 * @param aThreadID An ID of the thread ended |
|
127 * @return KErrNone. |
|
128 */ |
|
129 GLREF_C TInt ATFastLogThreadEnded( TUint aProcessId, TUint64 aThreadId ); |
|
130 |
|
131 /** |
|
132 * TBD |
|
133 * @param aS60Version S60 version |
|
134 * @aChecksum ROM checksum |
|
135 * @return KErrNone. |
|
136 */ |
|
137 TInt ATFastLogDeviceInfo( const TDesC8& aS60Version, const TDesC8& aChecksum); |
|
138 |
|
139 #endif |