diff -r 78fbd574edf4 -r da856f45b798 zeroconf/cachemanager/inc/mdnsdebug.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zeroconf/cachemanager/inc/mdnsdebug.h Thu Jun 24 19:09:47 2010 +0530 @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#ifndef MDNSDEBUG_H_ +#define MDNSDEBUG_H_ + +#include + +__FLOG_STMT(_LIT8(KMDNSSubsystem, "MDNS");) + +#ifdef __FLOG_ACTIVE +#define __MDNS_HEAP_FLOG \ + { \ + TInt allocated; \ + TInt largest; \ + TInt available(User::Heap().Available(largest)); \ + TInt size(User::Heap().Size()); \ + User::Heap().AllocSize(allocated); \ + __FLOG_STATIC_VA((KMDNSSubsystem, KComponent, _L8("Heap: Size = %d, Allocated = %d, Available = %d, Largest block = %d"), size, allocated, available, largest)); \ + } +#else +#define __MDNS_HEAP_FLOG +#endif // __FLOG_ACTIVE +#endif /*MDNSDEBUG_H_*/