equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef MTPDEBUG_H |
|
22 #define MTPDEBUG_H |
|
23 |
|
24 #include <comms-infras/commsdebugutility.h> |
|
25 |
|
26 __FLOG_STMT(_LIT8(KMTPSubsystem, "MTP");) |
|
27 |
|
28 #ifdef __FLOG_ACTIVE |
|
29 #define __MTP_HEAP_FLOG \ |
|
30 { \ |
|
31 TInt allocated; \ |
|
32 TInt largest; \ |
|
33 TInt available(User::Heap().Available(largest)); \ |
|
34 TInt size(User::Heap().Size()); \ |
|
35 User::Heap().AllocSize(allocated); \ |
|
36 __FLOG_STATIC_VA((KMTPSubsystem, KComponent, _L8("Heap: Size = %d, Allocated = %d, Available = %d, Largest block = %d"), size, allocated, available, largest)); \ |
|
37 } |
|
38 #else |
|
39 #define __MTP_HEAP_FLOG |
|
40 #endif // __FLOG_ACTIVE |
|
41 |
|
42 #endif // MTPDEBUG_H |