sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi/src/com/nokia/carbide/cpp/internal/pi/model/Function.java
equal
deleted
inserted
replaced
|
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 the License "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 package com.nokia.carbide.cpp.internal.pi.model; |
|
19 import java.io.Serializable; |
|
20 |
|
21 public class Function implements Serializable |
|
22 { |
|
23 private static final long serialVersionUID = -3261268206319782647L; |
|
24 |
|
25 public Binary functionBinary; |
|
26 public Long startAddress; |
|
27 public long offsetFromBinaryStart; |
|
28 public long length; |
|
29 |
|
30 public String functionName; |
|
31 |
|
32 public Function(String functionName, Long functionStart, String functionBinary) |
|
33 { |
|
34 this.functionName = functionName; |
|
35 this.startAddress = functionStart; |
|
36 this.functionBinary = new Binary(functionBinary); |
|
37 } |
|
38 |
|
39 public String toString() |
|
40 { |
|
41 return this.functionName+" @"+Long.toHexString(this.startAddress.intValue()); //$NON-NLS-1$ |
|
42 } |
|
43 |
|
44 } |