sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/SimpleCallstackManager.java
equal
deleted
inserted
replaced
|
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: Definitions for the class ReadFile |
|
15 * |
|
16 */ |
|
17 package com.nokia.s60tools.analyzetool.engine; |
|
18 |
|
19 import java.io.IOException; |
|
20 import java.util.List; |
|
21 |
|
22 import com.nokia.s60tools.analyzetool.engine.statistic.AllocCallstack; |
|
23 import com.nokia.s60tools.analyzetool.engine.statistic.BaseInfo; |
|
24 |
|
25 /** |
|
26 * This class supports the "old" way of reading callstacks from BaseInfo directly. |
|
27 * This requires that callstack information is filled in during the initial parsing phase |
|
28 * |
|
29 */ |
|
30 public class SimpleCallstackManager implements ICallstackManager{ |
|
31 |
|
32 /* (non-Javadoc) |
|
33 * @see com.nokia.s60tools.analyzetool.engine.statistic.ICallstackManager#readCallstack(com.nokia.s60tools.analyzetool.engine.statistic.BaseInfo) |
|
34 */ |
|
35 public List<AllocCallstack> readCallstack(BaseInfo baseInfo) |
|
36 throws IOException { |
|
37 return baseInfo.getCallstack(); |
|
38 } |
|
39 |
|
40 /* (non-Javadoc) |
|
41 * @see com.nokia.s60tools.analyzetool.engine.statistic.ICallstackManager#hasCallstack(com.nokia.s60tools.analyzetool.engine.statistic.BaseInfo) |
|
42 */ |
|
43 public boolean hasCallstack(BaseInfo baseInfo) { |
|
44 return baseInfo.getCallstack() != null && baseInfo.getCallstack().size() > 0; |
|
45 } |
|
46 |
|
47 } |