|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <memspy/engine/memspyenginehelperthread.h> |
|
19 |
|
20 // User includes |
|
21 #include <memspy/engine/memspyengine.h> |
|
22 #include <memspy/engine/memspyengineobjectthread.h> |
|
23 #include <memspy/engine/memspyengineobjectprocess.h> |
|
24 #include <memspy/engine/memspyengineobjectcontainer.h> |
|
25 #include <memspy/engine/memspyenginehelperchunk.h> |
|
26 #include <memspy/engine/memspyengineobjectthreadinfocontainer.h> |
|
27 |
|
28 |
|
29 |
|
30 CMemSpyEngineHelperThread::CMemSpyEngineHelperThread( CMemSpyEngine& aEngine ) |
|
31 : iEngine( aEngine ) |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 CMemSpyEngineHelperThread::~CMemSpyEngineHelperThread() |
|
37 { |
|
38 } |
|
39 |
|
40 |
|
41 void CMemSpyEngineHelperThread::ConstructL() |
|
42 { |
|
43 } |
|
44 |
|
45 |
|
46 CMemSpyEngineHelperThread* CMemSpyEngineHelperThread::NewL( CMemSpyEngine& aEngine ) |
|
47 { |
|
48 CMemSpyEngineHelperThread* self = new(ELeave) CMemSpyEngineHelperThread( aEngine ); |
|
49 CleanupStack::PushL( self ); |
|
50 self->ConstructL(); |
|
51 CleanupStack::Pop( self ); |
|
52 return self; |
|
53 } |
|
54 |
|
55 |
|
56 EXPORT_C void CMemSpyEngineHelperThread::OutputThreadInfoL( const CMemSpyThread& aThread, TBool aDetailed ) |
|
57 { |
|
58 CMemSpyThreadInfoContainer* container = CMemSpyThreadInfoContainer::NewLC( const_cast< CMemSpyThread& >( aThread ), EMemSpyThreadInfoItemTypeGeneralInfo ); |
|
59 |
|
60 if ( aDetailed ) |
|
61 { |
|
62 container->AddItemL( EMemSpyThreadInfoItemTypeStack ); |
|
63 } |
|
64 |
|
65 container->PrintL(); |
|
66 CleanupStack::PopAndDestroy( container ); |
|
67 } |