blob: 6a8f9ce1e346a2d77b93e1834ddaa0164f84ff0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*******************************************************************************
* Copyright (c) 2004,2008 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Keith Seitz <keiths@redhat.com> - initial API and implementation
* Kent Sebastian <ksebasti@redhat.com> -
*******************************************************************************/
package org.eclipse.linuxtools.internal.oprofile.core.model;
/**
* Represents an OProfile sample.
*/
public class OpModelSample {
private int _count;
private int _line;
private String _file;
public OpModelSample() {
_count = 0;
_line = 0;
}
public void _setCount(int _count) {
this._count = _count;
}
public void _setLine(int _line) {
this._line = _line;
}
public void _setFilePath(String _file) {
this._file = _file;
}
public int getCount() {
return _count;
}
public int getLine() {
return _line;
}
public String getFilePath() {
return _file;
}
@Override
public String toString() {
String s = "Line #: " + _line + ", Count: " + _count + "\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
return s;
}
}
|