14
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 |
#ifndef MDNSDEBUG_H_
|
|
18 |
#define MDNSDEBUG_H_
|
|
19 |
|
|
20 |
#include <comms-infras/commsdebugutility.h>
|
|
21 |
|
|
22 |
__FLOG_STMT(_LIT8(KMDNSSubsystem, "MDNS");)
|
|
23 |
|
|
24 |
#ifdef __FLOG_ACTIVE
|
|
25 |
#define __MDNS_HEAP_FLOG \
|
|
26 |
{ \
|
|
27 |
TInt allocated; \
|
|
28 |
TInt largest; \
|
|
29 |
TInt available(User::Heap().Available(largest)); \
|
|
30 |
TInt size(User::Heap().Size()); \
|
|
31 |
User::Heap().AllocSize(allocated); \
|
|
32 |
__FLOG_STATIC_VA((KMDNSSubsystem, KComponent, _L8("Heap: Size = %d, Allocated = %d, Available = %d, Largest block = %d"), size, allocated, available, largest)); \
|
|
33 |
}
|
|
34 |
#else
|
|
35 |
#define __MDNS_HEAP_FLOG
|
|
36 |
#endif // __FLOG_ACTIVE
|
|
37 |
#endif /*MDNSDEBUG_H_*/
|