equal
deleted
inserted
replaced
|
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: Class representing memory allocation in |
|
15 * external data gathering. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CATALLOC_H__ |
|
21 #define __CATALLOC_H__ |
|
22 |
|
23 #include "../inc/ATCommonDefines.h" |
|
24 |
|
25 class CATAlloc |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Constructor. |
|
30 */ |
|
31 CATAlloc() : m_iCSCount(0) {} |
|
32 |
|
33 /** |
|
34 * Destructor. |
|
35 */ |
|
36 ~CATAlloc(){} |
|
37 |
|
38 // Allocation time. |
|
39 string m_sTime; |
|
40 |
|
41 // Allocation size. |
|
42 string m_sSize; |
|
43 |
|
44 // Call stack address count. |
|
45 unsigned long m_iCSCount; |
|
46 |
|
47 // Call stack where packet number is key. |
|
48 map<unsigned long,string> m_vCallStack; |
|
49 |
|
50 // Get alloc string after address ( time, size, call stack). |
|
51 string GetAllocString( void ); |
|
52 }; |
|
53 #endif |
|
54 //EOF |