summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDmitry Kozlov2012-04-05 08:05:47 (EDT)
committer Roland Grunberg2012-04-12 17:01:31 (EDT)
commit8dcd0d54caca79e859971e8b6aa06760c7e2e657 (patch)
treea33bd8c25f7a2f55a41759714e4a90bd22eaa2f9
parentccc42ee3d16f262e2c5c68761dd684012d989612 (diff)
downloadorg.eclipse.linuxtools-8dcd0d54caca79e859971e8b6aa06760c7e2e657.zip
org.eclipse.linuxtools-8dcd0d54caca79e859971e8b6aa06760c7e2e657.tar.gz
org.eclipse.linuxtools-8dcd0d54caca79e859971e8b6aa06760c7e2e657.tar.bz2
Cleanup leading underscores from identifiers' names in org.eclipse.linuxtools.internal.oprofile.core.daemon.OprofileDaemonEvent.
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OprofileDaemonEvent.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OprofileDaemonEvent.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OprofileDaemonEvent.java
index 255f741..c93f9d7 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OprofileDaemonEvent.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OprofileDaemonEvent.java
@@ -23,22 +23,22 @@ public class OprofileDaemonEvent {
public static final int COUNT_INVALID = -1;
// The event to collect on this counter
- private OpEvent _event;
+ private OpEvent event;
// Profile kernel?
- private boolean _profileKernel;
+ private boolean profileKernel;
// Profile userspace?
- private boolean _profileUser;
+ private boolean profileUser;
// Reset counter value
- private int _count;
+ private int count;
public OprofileDaemonEvent() {
- _profileKernel = true;
- _profileUser = true;
- _count = COUNT_UNINITIALIZED;
- _event = null;
+ profileKernel = true;
+ profileUser = true;
+ count = COUNT_UNINITIALIZED;
+ event = null;
}
/**
@@ -46,7 +46,7 @@ public class OprofileDaemonEvent {
* @param event the OProfile event
*/
public void setEvent(OpEvent event) {
- _event = event;
+ this.event = event;
}
/**
@@ -54,7 +54,7 @@ public class OprofileDaemonEvent {
* @returns the OProfile event
*/
public OpEvent getEvent() {
- return _event;
+ return event;
}
/**
@@ -62,7 +62,7 @@ public class OprofileDaemonEvent {
* @param profileKernel whether to enable kernel profiling
*/
public void setProfileKernel(boolean profileKernel) {
- _profileKernel = profileKernel;
+ this.profileKernel = profileKernel;
}
/**
@@ -70,7 +70,7 @@ public class OprofileDaemonEvent {
* @return whether to profile the kernel
*/
public boolean getProfileKernel() {
- return _profileKernel;
+ return profileKernel;
}
/**
@@ -78,7 +78,7 @@ public class OprofileDaemonEvent {
* @param profileUser whether to profile userspace
*/
public void setProfileUser(boolean profileUser) {
- _profileUser = profileUser;
+ this.profileUser = profileUser;
}
/**
@@ -86,7 +86,7 @@ public class OprofileDaemonEvent {
* @return whether to profile userspace
*/
public boolean getProfileUser() {
- return _profileUser;
+ return profileUser;
}
/**
@@ -94,7 +94,7 @@ public class OprofileDaemonEvent {
* @param count the new count
*/
public void setResetCount(int count) {
- _count = count;
+ this.count = count;
}
/**
@@ -103,16 +103,16 @@ public class OprofileDaemonEvent {
*/
public int getResetCount() {
// FIXME: This isn't quite in the right place...
- if (_count == COUNT_UNINITIALIZED) {
+ if (count == COUNT_UNINITIALIZED) {
// This is what Oprofile does in oprof_start.cpp:
double speed = Oprofile.getCpuFrequency();
if (speed == 0.0) {
- _count = _event.getMinCount() * 30;
+ count = event.getMinCount() * 30;
} else {
- _count = (int) speed * 20;
+ count = (int) speed * 20;
}
}
- return _count;
+ return count;
}
}