Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent output #1

Open
LukeOwlclaw opened this issue Dec 9, 2014 · 0 comments
Open

Inconsistent output #1

LukeOwlclaw opened this issue Dec 9, 2014 · 0 comments

Comments

@LukeOwlclaw
Copy link

Emmagee creates bad output. The CSV file looks like this:

Timestamp,App Used Memory PSS(MB),App Used Memory(%),System Available Memory(MB),App Used CPU(%),Total Used CPU(%),cpu0 Total Usage(%),cpu1 Total Usage(%),cpu2 Total Usage(%),cpu3 Total Usage(%),Net Traffic(KB),Battery(%),Current(mA),Temperature(C),Voltage(V)
2014-12-09 10:21:04,32,20,1,72,1277,32,0,0,0.00,0.00,0.00,0.00,0,36,-130,33.7,3.878

So the title has 15 entries, but there are 18 data values.

Here is the corresponding code:

Write titles:

bw.write(getString(R.string.process_package) + ": ," + packageName + "\r\n" + getString(R.string.process_name) + ": ," + processName
+ "\r\n" + getString(R.string.process_pid) + ": ," + pid + "\r\n" + getString(R.string.mem_size) + ": ," + totalMemory + "MB\r\n"
+ getString(R.string.cpu_type) + ": ," + cpuInfo.getCpuName() + "\r\n" + getString(R.string.android_system_version) + ": ,"
+ memoryInfo.getSDKVersion() + "\r\n" + getString(R.string.mobile_type) + ": ," + memoryInfo.getPhoneType() + "\r\n" + "UID"
+ ": ," + uid + "\r\n");

Write data entries:

EmmageeService.bw.write(mDateTime2 + COMMA + pMemory + COMMA + percent + COMMA + fMemory + COMMA + processCpuRatio + COMMA
+ totalCpuBuffer.toString() + trafValue + COMMA + totalBatt + COMMA + currentBatt + COMMA + temperature + COMMA + voltage
+ "\r\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant