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