sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/internal/engine/MemoryActivityModel.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 package com.nokia.s60tools.analyzetool.internal.engine; |
17 package com.nokia.s60tools.analyzetool.internal.engine; |
18 import java.util.AbstractList; |
18 import java.util.AbstractList; |
19 import java.util.ArrayList; |
19 import java.util.ArrayList; |
20 import java.util.Collection; |
20 import java.util.Collection; |
21 |
21 |
|
22 import com.nokia.s60tools.analyzetool.engine.ICallstackManager; |
22 import com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel; |
23 import com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel; |
23 import com.nokia.s60tools.analyzetool.engine.IMemoryActivityModelChangeListener; |
24 import com.nokia.s60tools.analyzetool.engine.IMemoryActivityModelChangeListener; |
24 import com.nokia.s60tools.analyzetool.engine.statistic.BaseInfo; |
25 import com.nokia.s60tools.analyzetool.engine.statistic.BaseInfo; |
25 import com.nokia.s60tools.analyzetool.engine.statistic.ProcessInfo; |
26 import com.nokia.s60tools.analyzetool.engine.statistic.ProcessInfo; |
26 |
27 |
60 /** the currently selected process*/ |
61 /** the currently selected process*/ |
61 private ProcessInfo selectedProcess; |
62 private ProcessInfo selectedProcess; |
62 |
63 |
63 /** computed values for currently selected process*/ |
64 /** computed values for currently selected process*/ |
64 private ProcessInfoComputedValues selectedProcessComputedValues; |
65 private ProcessInfoComputedValues selectedProcessComputedValues; |
|
66 |
|
67 private boolean deferredCallstackReading; |
|
68 private ICallstackManager callstackManager; |
65 |
69 |
66 |
70 |
67 /** |
71 /** |
68 * Constructor. |
72 * Constructor. |
69 * |
73 * |
384 public int getHighestCumulatedMemorySize() { |
388 public int getHighestCumulatedMemorySize() { |
385 return highestCumulatedMemorySize; |
389 return highestCumulatedMemorySize; |
386 } |
390 } |
387 |
391 |
388 } |
392 } |
389 |
393 /* (non-Javadoc) |
|
394 * @see com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel#setDeferredCallstackReading(boolean) |
|
395 */ |
|
396 public void setDeferredCallstackReading(boolean deferredCallstackReading) { |
|
397 this.deferredCallstackReading = deferredCallstackReading; |
|
398 } |
|
399 |
|
400 /* (non-Javadoc) |
|
401 * @see com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel#isDeferredCallstackReading() |
|
402 */ |
|
403 public boolean isDeferredCallstackReading() { |
|
404 return deferredCallstackReading; |
|
405 } |
|
406 |
|
407 /* (non-Javadoc) |
|
408 * @see com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel#getCallstackManager() |
|
409 */ |
|
410 public ICallstackManager getCallstackManager() { |
|
411 return callstackManager; |
|
412 } |
|
413 |
|
414 /* (non-Javadoc) |
|
415 * @see com.nokia.s60tools.analyzetool.engine.IMemoryActivityModel#setCallstackManager(com.nokia.s60tools.analyzetool.engine.statistic.CallstackManager) |
|
416 */ |
|
417 public void setCallstackManager(ICallstackManager callstackManager) { |
|
418 this.callstackManager = callstackManager; |
|
419 |
|
420 } |
390 |
421 |
391 // Other public methods can be added here. |
422 // Other public methods can be added here. |
392 } |
423 } |