maemo-tools:sp-endurance.git
5 years agosp-endurance v3.0.2 v3.0.2
Tommi Rantala [Tue, 27 Dec 2011 07:49:18 +0000 (09:49 +0200)]
sp-endurance v3.0.2

5 years agoRevert "debian/control: change sp-endurance-tests architecture from 'any' to 'all'"
Tommi Rantala [Tue, 27 Dec 2011 07:45:28 +0000 (09:45 +0200)]
Revert "debian/control: change sp-endurance-tests architecture from 'any' to 'all'"

This reverts commit 2e380a227fb91827111054bd91992683e7f0dab2.

BIFH is now complaining about missing "sp-endurance-tests" package, so
revert this change to see if it helps.

5 years agosp-endurance v3.0.1 v3.0.1
Tommi Rantala [Thu, 22 Dec 2011 13:44:54 +0000 (15:44 +0200)]
sp-endurance v3.0.1

5 years agosave-incremental-endurance-stats: check `rzscontrol' return value
Tommi Rantala [Thu, 22 Dec 2011 12:31:33 +0000 (14:31 +0200)]
save-incremental-endurance-stats: check `rzscontrol' return value

5 years agofix RPM dependency comment
Eero Tamminen [Thu, 22 Dec 2011 12:31:51 +0000 (14:31 +0200)]
fix RPM dependency comment

5 years agodebian/control: change sp-endurance-tests architecture from 'any' to 'all'
Tommi Rantala [Thu, 22 Dec 2011 12:11:33 +0000 (14:11 +0200)]
debian/control: change sp-endurance-tests architecture from 'any' to 'all'

5 years agodebian/control: add 'xz-utils' to sp-endurance-postproc dependencies
Tommi Rantala [Thu, 22 Dec 2011 12:10:36 +0000 (14:10 +0200)]
debian/control: add 'xz-utils' to sp-endurance-postproc dependencies

The recompress-endurance-measurements script requires xz.

5 years agoendurance_plot: apply basename() to the 'Name' entry from smaps capture data
Tommi Rantala [Thu, 22 Dec 2011 12:01:08 +0000 (14:01 +0200)]
endurance_plot: apply basename() to the 'Name' entry from smaps capture data

The smaps capture data produced with sp_smaps_snapshot was changed to
include the 'Name' in non-processed format.

5 years agodebian/sp-endurance-postproc.install: add recompress-endurance-measurements
Tommi Rantala [Thu, 22 Dec 2011 11:56:22 +0000 (13:56 +0200)]
debian/sp-endurance-postproc.install: add recompress-endurance-measurements

Add the recompress-endurance-measurements related files to the
sp-endurance-postproc package.

5 years agoendurance_plot: remove some commented out debugging code from loop_over_all_apps()
Tommi Rantala [Mon, 19 Dec 2011 13:32:55 +0000 (15:32 +0200)]
endurance_plot: remove some commented out debugging code from loop_over_all_apps()

5 years agoendurance_plot: use abs() in loop_over_all_apps()
Tommi Rantala [Mon, 19 Dec 2011 13:31:04 +0000 (15:31 +0200)]
endurance_plot: use abs() in loop_over_all_apps()

5 years agoendurance_plot: remove the commented out 'private dirty' graph code
Tommi Rantala [Mon, 19 Dec 2011 12:43:24 +0000 (14:43 +0200)]
endurance_plot: remove the commented out 'private dirty' graph code

5 years agoendurance_report.py: add battery information
Tommi Rantala [Mon, 19 Dec 2011 12:31:53 +0000 (14:31 +0200)]
endurance_report.py: add battery information

Parse the 'bmestat' file from the endurance data, and show the results
in tabular format.

5 years agoproc2csv: pointer constness for non-modified data
Tommi Rantala [Fri, 16 Dec 2011 14:43:42 +0000 (16:43 +0200)]
proc2csv: pointer constness for non-modified data

5 years agoproc2csv: avoid uneven brackets due to ifdefs
Tommi Rantala [Fri, 16 Dec 2011 14:39:03 +0000 (16:39 +0200)]
proc2csv: avoid uneven brackets due to ifdefs

This fixes text editor hightlighter problems for me.

5 years agoendurance_report.py: do not warn about missing data for 'sp-noncached'
Tommi Rantala [Fri, 16 Dec 2011 14:35:23 +0000 (16:35 +0200)]
endurance_report.py: do not warn about missing data for 'sp-noncached'

The endurance snapshotting script uses the 'sp-noncached' utility for
streaming data from & to disk. The processes are short-living, so do not
bother to give a warning about those.

5 years agoendurance_report.py: add test round links to 'Network usage' table
Tommi Rantala [Fri, 16 Dec 2011 14:20:41 +0000 (16:20 +0200)]
endurance_report.py: add test round links to 'Network usage' table

5 years agoendurance_report.py: parse 'component_version' for HW information
Tommi Rantala [Fri, 16 Dec 2011 09:14:16 +0000 (11:14 +0200)]
endurance_report.py: parse 'component_version' for HW information

Parse the 'component_version' file from the collected endurance data,
and report the 'product' and 'hw-build' entries from the file in the
endurance report.

We read the file content from every round while it would suffice to only
read it from the first, but the redundancy should not hurt too much.

5 years agoendurance_report.py: add timestamp to initial round links
Tommi Rantala [Fri, 16 Dec 2011 09:04:47 +0000 (11:04 +0200)]
endurance_report.py: add timestamp to initial round links

Relevant part of Contents section before this change:
 * Resource usage changes for each of the test rounds:
   * Round 1 (gnome-terminal)
   * Round 2 (gnome-terminal)
   * Round 3 (gnome-terminal)

Relevant part of Contents section after this change:
 * Resource usage changes for each of the test rounds:
   * Round 1 [2011-12-15 16:14:14] (gnome-terminal)
   * Round 2 [2011-12-15 16:14:25] (gnome-terminal)
   * Round 3 [2011-12-15 16:14:27] (gnome-terminal)

5 years agoendurance_report.py: strip 'date = ' out of 'datetime'
Tommi Rantala [Fri, 16 Dec 2011 09:02:45 +0000 (11:02 +0200)]
endurance_report.py: strip 'date = ' out of 'datetime'

5 years agoUpdate RPM packaging
Andris Zeila [Tue, 20 Dec 2011 09:08:42 +0000 (11:08 +0200)]
Update RPM packaging

5 years agoendurance_plot: fix wchan parsing /proc/pid/io data from usage.csv
Tommi Rantala [Wed, 14 Dec 2011 13:45:10 +0000 (15:45 +0200)]
endurance_plot: fix wchan parsing /proc/pid/io data from usage.csv

We were parsing the /proc/pid/io data from usage.csv as wchan input.

5 years agoendurance_plot: remove 'vma_count' from global scope
Tommi Rantala [Tue, 13 Dec 2011 14:23:43 +0000 (16:23 +0200)]
endurance_plot: remove 'vma_count' from global scope

5 years agoendurance_plot: split ramzswap graphs in up to three separate graphs
Tommi Rantala [Tue, 13 Dec 2011 14:05:55 +0000 (16:05 +0200)]
endurance_plot: split ramzswap graphs in up to three separate graphs

Split the single ramzswap graph into three separate graphs:

 1. Reads and writes in megabytes per round.
 2. Memory usage: OrigDataSize, ComprDataSize, MemUsedTotal, ZeroPages,
    GoodCompress and NoCompress.
 3. Errors, if any (in most cases this graph will not be created).

Clean up the parsing code along the way.

5 years agoendurance_plot: abort processing if any 'usage.csv' is empty
Tommi Rantala [Tue, 13 Dec 2011 14:04:33 +0000 (16:04 +0200)]
endurance_plot: abort processing if any 'usage.csv' is empty

5 years agoendurance_plot: avoid empty ramzswap graph
Tommi Rantala [Mon, 12 Dec 2011 14:39:24 +0000 (16:39 +0200)]
endurance_plot: avoid empty ramzswap graph

Check the ramzswap values before plotting to avoid showing graph full of
zeroes.

5 years agoendurance_plot: split the kernel slab graph to count and changes graphs
Tommi Rantala [Mon, 12 Dec 2011 10:40:59 +0000 (12:40 +0200)]
endurance_plot: split the kernel slab graph to count and changes graphs

For improved readability, split the kernel slab graph to one that shows
total count in histogram style, and another graph that shows only those
slabs that changed in linespoints style.

5 years agoendurance_plot: check 'heap-sum-others' before adding to plot in generate_plot_heap_h...
Tommi Rantala [Mon, 12 Dec 2011 10:19:37 +0000 (12:19 +0200)]
endurance_plot: check 'heap-sum-others' before adding to plot in generate_plot_heap_histogram()

5 years agoendurance_plot: create 'shmem' plot only when needed
Tommi Rantala [Mon, 12 Dec 2011 10:16:12 +0000 (12:16 +0200)]
endurance_plot: create 'shmem' plot only when needed

5 years agoendurance_plot: adjust xtics filtering heuristics
Tommi Rantala [Mon, 12 Dec 2011 10:00:25 +0000 (12:00 +0200)]
endurance_plot: adjust xtics filtering heuristics

Filter out every other xtic string even more eagarly to avoid text
overlapping.

5 years agoendurance_plot: report snapshot date even if 'step.txt' missing
Tommi Rantala [Mon, 12 Dec 2011 09:29:51 +0000 (11:29 +0200)]
endurance_plot: report snapshot date even if 'step.txt' missing

5 years agoendurance_plot: remove check for 'step.txt' existence
Tommi Rantala [Mon, 12 Dec 2011 09:25:53 +0000 (11:25 +0200)]
endurance_plot: remove check for 'step.txt' existence

We will want to add the timestamps to the HTML output even if 'step.txt'
files are missing.

5 years agoendurance_plot: move usage.csv parsing to process_usage_csv()
Tommi Rantala [Mon, 12 Dec 2011 09:10:30 +0000 (11:10 +0200)]
endurance_plot: move usage.csv parsing to process_usage_csv()

5 years agoendurance_plot: make 'shared_num' and 'shared_size' local
Tommi Rantala [Mon, 12 Dec 2011 09:08:19 +0000 (11:08 +0200)]
endurance_plot: make 'shared_num' and 'shared_size' local

5 years agoendurance_plot: move usage.csv 'Loadavg' parsing to parse_loadavg_block()
Tommi Rantala [Mon, 12 Dec 2011 08:41:53 +0000 (10:41 +0200)]
endurance_plot: move usage.csv 'Loadavg' parsing to parse_loadavg_block()

5 years agoendurance_plot: move usage.csv 'Allocated FDs' parsing to parse_allocated_fds_block()
Tommi Rantala [Mon, 12 Dec 2011 08:32:51 +0000 (10:32 +0200)]
endurance_plot: move usage.csv 'Allocated FDs' parsing to parse_allocated_fds_block()

5 years agoendurance_plot: reduce indent level in generate_plot_swap_event()
Tommi Rantala [Mon, 12 Dec 2011 08:05:40 +0000 (10:05 +0200)]
endurance_plot: reduce indent level in generate_plot_swap_event()

5 years agoendurance_plot: use one_plot_set() in generate_plot_swap_event()
Tommi Rantala [Mon, 12 Dec 2011 07:59:58 +0000 (09:59 +0200)]
endurance_plot: use one_plot_set() in generate_plot_swap_event()

5 years agoendurance_plot: check data existence before plotting in generate_plot_diskstats()
Tommi Rantala [Mon, 12 Dec 2011 07:55:00 +0000 (09:55 +0200)]
endurance_plot: check data existence before plotting in generate_plot_diskstats()

5 years agoendurance_plot: remove unused variable 'total_shared_num'
Tommi Rantala [Sun, 11 Dec 2011 20:26:41 +0000 (22:26 +0200)]
endurance_plot: remove unused variable 'total_shared_num'

5 years agoendurance_plot: use strict
Tommi Rantala [Sun, 11 Dec 2011 14:21:41 +0000 (16:21 +0200)]
endurance_plot: use strict

The script finally works with strict mode enabled. Hooray!

5 years agoendurance_plot: rename one-letter global variable names
Tommi Rantala [Sun, 11 Dec 2011 14:19:07 +0000 (16:19 +0200)]
endurance_plot: rename one-letter global variable names

This rather large commit changes global variable names:

1. The current round number: $i => $round
2. The current directory name: $d => $dir

The variables are also passed explicitly to the functions using them.

5 years agoendurance_plot: rename 'd' to 'dir' in first pass loop
Tommi Rantala [Sun, 11 Dec 2011 14:11:24 +0000 (16:11 +0200)]
endurance_plot: rename 'd' to 'dir' in first pass loop

5 years agoendurance_plot: simplify for loop in process_pagetypeinfo()
Tommi Rantala [Sun, 11 Dec 2011 14:05:33 +0000 (16:05 +0200)]
endurance_plot: simplify for loop in process_pagetypeinfo()

5 years agoendurance_plot: remove pagetable size check
Tommi Rantala [Sun, 11 Dec 2011 14:02:04 +0000 (16:02 +0200)]
endurance_plot: remove pagetable size check

5 years agoendurance_plot: pass only timestamp to date2seconds()
Tommi Rantala [Sun, 11 Dec 2011 13:53:03 +0000 (15:53 +0200)]
endurance_plot: pass only timestamp to date2seconds()

5 years agoendurance_plot: strict mode fixes: prefix locally used variables with 'my'
Tommi Rantala [Sun, 11 Dec 2011 13:49:39 +0000 (15:49 +0200)]
endurance_plot: strict mode fixes: prefix locally used variables with 'my'

5 years agoendurance_plot: use 'dir' as loop variable name
Tommi Rantala [Sun, 11 Dec 2011 13:20:08 +0000 (15:20 +0200)]
endurance_plot: use 'dir' as loop variable name

5 years agoendurance_plot: rename variable from 'round' to 'rnd' in generate_plot_heap_histogram()
Tommi Rantala [Sun, 11 Dec 2011 12:58:20 +0000 (14:58 +0200)]
endurance_plot: rename variable from 'round' to 'rnd' in generate_plot_heap_histogram()

5 years agoendurance_plot: refer to directory count explicitly
Tommi Rantala [Sun, 11 Dec 2011 12:55:13 +0000 (14:55 +0200)]
endurance_plot: refer to directory count explicitly

Replace use of the `i' variable as directory count, and instead use
`scalar(@dirs)'.

5 years agoendurance_plot: strict mode fixes: prefix locally used variables with 'my'
Tommi Rantala [Sun, 11 Dec 2011 12:39:51 +0000 (14:39 +0200)]
endurance_plot: strict mode fixes: prefix locally used variables with 'my'

5 years agoendurance_plot: store 'sum_app_swapped' and 'sum_app_pss' in process_smaps()
Tommi Rantala [Sun, 11 Dec 2011 12:26:04 +0000 (14:26 +0200)]
endurance_plot: store 'sum_app_swapped' and 'sum_app_pss' in process_smaps()

5 years agoendurance_plot: move 'swapused' calculation to parse_memtotal_block()
Tommi Rantala [Sun, 11 Dec 2011 12:22:14 +0000 (14:22 +0200)]
endurance_plot: move 'swapused' calculation to parse_memtotal_block()

5 years agoendurance_plot: declare globally used variables
Tommi Rantala [Sun, 11 Dec 2011 12:01:00 +0000 (14:01 +0200)]
endurance_plot: declare globally used variables

5 years agoendurance_plot: fix array variable name in error path
Tommi Rantala [Sun, 11 Dec 2011 12:00:14 +0000 (14:00 +0200)]
endurance_plot: fix array variable name in error path

5 years agoendurance_plot: remove commented out 'unaccounted swap' calculations
Tommi Rantala [Sun, 11 Dec 2011 11:59:32 +0000 (13:59 +0200)]
endurance_plot: remove commented out 'unaccounted swap' calculations

5 years agoendurance_plot: fix close_plot() count argument
Tommi Rantala [Sat, 10 Dec 2011 11:50:27 +0000 (13:50 +0200)]
endurance_plot: fix close_plot() count argument

5 years agoendurance_plot: fix typo in variable name to show battery manufacturer in graph
Tommi Rantala [Sat, 10 Dec 2011 10:57:08 +0000 (12:57 +0200)]
endurance_plot: fix typo in variable name to show battery manufacturer in graph

5 years agoendurance_plot: add backlight brightness information to battery graph
Tommi Rantala [Sat, 10 Dec 2011 10:55:33 +0000 (12:55 +0200)]
endurance_plot: add backlight brightness information to battery graph

5 years agoendurance_plot: rename '#smaps segments' plot to '#memory maps'
Tommi Rantala [Fri, 9 Dec 2011 15:05:19 +0000 (17:05 +0200)]
endurance_plot: rename '#smaps segments' plot to '#memory maps'

The plot shows the number of virtual memory areas (VMA) for processes.
The VMA term is kernel-speak, so let's rather call it 'memory maps'.

5 years agoendurance_plot: check that directory creation succeeds for 'e' and 'graphs'
Tommi Rantala [Fri, 9 Dec 2011 14:51:10 +0000 (16:51 +0200)]
endurance_plot: check that directory creation succeeds for 'e' and 'graphs'

5 years agoendurance_plot: allow missing 'component_version'
Tommi Rantala [Fri, 9 Dec 2011 14:47:20 +0000 (16:47 +0200)]
endurance_plot: allow missing 'component_version'

The 'component_version' generation was made dependent on availability of
sysinfoclient in commit dc99311ff1e658887a360d18dfbc88f3e2069edc
("save-incremental-endurance-stats: do not create dummy 'bootreason' and
'component_version' files").

Fix endurance_plot to allow the 'component_version' file to be missing.

5 years agoproc2csv: make -t optional, by default disabled feature
Eero Tamminen [Fri, 9 Dec 2011 14:43:09 +0000 (16:43 +0200)]
proc2csv: make -t optional, by default disabled feature

5 years agoRevert "proc2csv: remove '-t' option" to make it optional feature disabled by default
Eero Tamminen [Fri, 9 Dec 2011 14:27:44 +0000 (16:27 +0200)]
Revert "proc2csv: remove '-t' option" to make it optional feature disabled by default

This reverts commit 6353c89ea209bd11f5f4cc6773785f31fd41b4e6.

5 years agosp-endurance v3.0 v3.0
Tommi Rantala [Fri, 9 Dec 2011 13:39:22 +0000 (15:39 +0200)]
sp-endurance v3.0

5 years agoendurance_plot.1: remove reference to 'e' directory
Tommi Rantala [Fri, 9 Dec 2011 12:57:20 +0000 (14:57 +0200)]
endurance_plot.1: remove reference to 'e' directory

The 'e' directory is automatically removed since commit
65d495b1b135a0202e654dd47de193f5604acee5 ("endurance_plot: remove the
temporary directory 'e' by default").

5 years agoproc2csv: remove '-t' option
Tommi Rantala [Fri, 9 Dec 2011 12:52:20 +0000 (14:52 +0200)]
proc2csv: remove '-t' option

We are now requesting extra capabilities for proc2csv in Harmattan, so
remove the '-t' flag could be used for nefarious purposes.

5 years agoendurance_plot: do not 'eval' the ForkManager
Tommi Rantala [Fri, 9 Dec 2011 10:27:10 +0000 (12:27 +0200)]
endurance_plot: do not 'eval' the ForkManager

Do not try to catch errors here with 'eval', but just plain 'require'
and use the ForkManager if the '-j' flag was specified.

The ForkManager is still optional after this change.

5 years agoendurance_plot: remove the temporary directory 'e' by default
Tommi Rantala [Fri, 9 Dec 2011 10:24:05 +0000 (12:24 +0200)]
endurance_plot: remove the temporary directory 'e' by default

The endurance_plot script uses the 'e' directory for storing temporary
data, such as those required by gnuplot. Remove the directory by default
after the script has executed, and provide option '-e' for retaining it.

5 years agoMakefile: link xmeminfo explicitly with libX11
Tommi Rantala [Fri, 9 Dec 2011 09:56:29 +0000 (11:56 +0200)]
Makefile: link xmeminfo explicitly with libX11

xmeminfo uses symbols from libX11, so link to it explicitly. Fixes link
failures seen in some systems.

5 years agosave-incremental-endurance-stats: rename 'xres.log' to 'xmeminfo.log'
Tommi Rantala [Fri, 9 Dec 2011 09:46:02 +0000 (11:46 +0200)]
save-incremental-endurance-stats: rename 'xres.log' to 'xmeminfo.log'

The results from running xmeminfo is stored to file 'xmeminfo', so
follow the naming and store the possible errors to 'xmeminfo.log'.

5 years agosave-incremental-endurance-stats: do not hide sysinfoclient errors
Tommi Rantala [Fri, 9 Dec 2011 09:44:36 +0000 (11:44 +0200)]
save-incremental-endurance-stats: do not hide sysinfoclient errors

5 years agosave-incremental-endurance-stats: do not create dummy 'bootreason' and 'component_ver...
Tommi Rantala [Fri, 9 Dec 2011 09:42:46 +0000 (11:42 +0200)]
save-incremental-endurance-stats: do not create dummy 'bootreason' and 'component_version' files

Check that sysinfoclient is available before using it, to avoid creating
empty/dummy bootreason and component_version files.

5 years agosave-incremental-endurance-stats: collect /sys/class/backlight/
Tommi Rantala [Fri, 9 Dec 2011 09:39:28 +0000 (11:39 +0200)]
save-incremental-endurance-stats: collect /sys/class/backlight/

Collect backlight information, as it has an effect on battery lifetime.

5 years agoendurance_plot: prune old commented out debugging code
Tommi Rantala [Fri, 9 Dec 2011 09:18:47 +0000 (11:18 +0200)]
endurance_plot: prune old commented out debugging code

5 years agoproc2csv: collect /proc/pid/io optionally
Tommi Rantala [Fri, 9 Dec 2011 08:45:05 +0000 (10:45 +0200)]
proc2csv: collect /proc/pid/io optionally

Start collecting /proc/pid/io. These proc entries are only available if
the kernel was configured with suitable options.

The CSV entry that is produced looks like this:

PID,rchar,wchar,syscr,syscw,read_bytes,write_bytes,cancelled_write_bytes:
1,1554811136,380714952,711467,338580,1766457344,1499136,53248
2,0,0,0,0,0,0,0
3,0,0,0,0,0,0,0
6,0,0,0,0,0,0,0
10,0,0,0,0,0,0,0
29,0,0,0,0,0,0,0
250,0,0,0,0,0,0,0
251,0,0,0,0,0,0,0
342,0,0,0,0,0,19189760,0
343,0,0,0,0,0,0,0
398,1608,1556,3400,1556,0,0,0
400,11736848,156448,18168,3079,63933952,0,0
...

5 years agoproc2csv: document newly collected /proc/pid/wchan
Tommi Rantala [Fri, 9 Dec 2011 08:35:05 +0000 (10:35 +0200)]
proc2csv: document newly collected /proc/pid/wchan

5 years agoendurance_plot: also catch 'anon_inode:inotify' in process_openfds()
Tommi Rantala [Fri, 9 Dec 2011 08:33:52 +0000 (10:33 +0200)]
endurance_plot: also catch 'anon_inode:inotify' in process_openfds()

5 years agoendurance_plot: add '-j' flag for parallel gnuplotting and thumbnail generation
Tommi Rantala [Thu, 8 Dec 2011 14:03:04 +0000 (16:03 +0200)]
endurance_plot: add '-j' flag for parallel gnuplotting and thumbnail generation

The gnuplotting and thumbnail generation are easily executed in
parallel, and this may result to nice wall clock improvements to the
time it takes to generate the endurance graphs.

We use the Parallel::ForkManager Perl module for the parallel execution.

Some results with quad-core x86 machine:

  $ time endurance_plot 10? >/dev/null 2>/dev/null
  real    0m15.067s
  user    0m16.177s
  sys     0m1.072s

  $ time endurance_plot 10? >/dev/null 2>/dev/null -j 2
  real    0m10.115s
  user    0m17.241s
  sys     0m1.408s

  $ time endurance_plot 10? >/dev/null 2>/dev/null -j 20
  real    0m6.610s
  user    0m24.294s
  sys     0m1.748s

5 years agoendurance_plot: remove progress printing from plot generation functions
Tommi Rantala [Thu, 8 Dec 2011 13:51:50 +0000 (15:51 +0200)]
endurance_plot: remove progress printing from plot generation functions

The progress prints in the plot generation functions were incomplete and
now redundant, as the gnuplot commands are now printed instead.

5 years agoendurance_plot: separate gnuplot command generation and gnuplot execution
Tommi Rantala [Thu, 8 Dec 2011 13:10:01 +0000 (15:10 +0200)]
endurance_plot: separate gnuplot command generation and gnuplot execution

First create the gnuplot command files, and when done, execute gnuplot
in a separate loop. With the current settings the command generation is
very fast, and most time goes to the gnuplot execution.

5 years agoendurance_plot: more examples in usage output
Tommi Rantala [Thu, 8 Dec 2011 12:46:20 +0000 (14:46 +0200)]
endurance_plot: more examples in usage output

5 years agoendurance_plot: change parsing order for improved performance
Tommi Rantala [Thu, 8 Dec 2011 11:05:44 +0000 (13:05 +0200)]
endurance_plot: change parsing order for improved performance

Check for the /proc/pid/smaps key-value pairs first, as those are the
most common lines from the smaps capture files. Improves performance
slightly:

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m23.626s
  user    1m27.721s
  sys     0m3.916s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m21.154s
  user    1m25.389s
  sys     0m4.072s

5 years agoendurance_plot: use substr() instead of split() in process_smaps()
Tommi Rantala [Thu, 8 Dec 2011 11:00:14 +0000 (13:00 +0200)]
endurance_plot: use substr() instead of split() in process_smaps()

Improve performance slightly by avoiding the more expensive split().

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m29.741s
  user    1m33.842s
  sys     0m4.284s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m23.626s
  user    1m27.721s
  sys     0m3.916s

5 years agoendurance_plot: remove redundant chop for improved performance
Tommi Rantala [Thu, 8 Dec 2011 10:45:59 +0000 (12:45 +0200)]
endurance_plot: remove redundant chop for improved performance

We do not need to chop the input line here. Also improves the
performance slightly:

Before:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m33.021s
  user    1m35.938s
  sys     0m4.548s

After:

  $ time endurance_plot ??? >/dev/null 2>/dev/null

  real    1m29.741s
  user    1m33.842s
  sys     0m4.284s

5 years agoendurance_plot: remove redundant `show_kernelstack' and `show_shmem'
Tommi Rantala [Thu, 8 Dec 2011 10:37:01 +0000 (12:37 +0200)]
endurance_plot: remove redundant `show_kernelstack' and `show_shmem'

5 years agoendurance_plot: rewrite the system memory graph creation
Tommi Rantala [Thu, 8 Dec 2011 10:29:33 +0000 (12:29 +0200)]
endurance_plot: rewrite the system memory graph creation

5 years agoendurance_plot: also parse Active and Inactive anon memory in parse_memtotal_block()
Tommi Rantala [Thu, 8 Dec 2011 10:21:37 +0000 (12:21 +0200)]
endurance_plot: also parse Active and Inactive anon memory in parse_memtotal_block()

5 years agoendurance_plot: battery graph based on `sysfs_power_supply'
Tommi Rantala [Thu, 8 Dec 2011 09:50:48 +0000 (11:50 +0200)]
endurance_plot: battery graph based on `sysfs_power_supply'

5 years agoendurance_plot: use one_plot_set() in generate_plot_ramzswap()
Tommi Rantala [Thu, 8 Dec 2011 09:16:26 +0000 (11:16 +0200)]
endurance_plot: use one_plot_set() in generate_plot_ramzswap()

5 years agoendurance_plot: use one_plot_set() in generate_plot_battery()
Tommi Rantala [Thu, 8 Dec 2011 09:15:47 +0000 (11:15 +0200)]
endurance_plot: use one_plot_set() in generate_plot_battery()

5 years agoendurance_plot: use one_plot_set() in generate_plot_interrupts()
Tommi Rantala [Thu, 8 Dec 2011 09:15:09 +0000 (11:15 +0200)]
endurance_plot: use one_plot_set() in generate_plot_interrupts()

5 years agoendurance_plot: use one_plot_set() in generate_plot_shmem()
Tommi Rantala [Thu, 8 Dec 2011 09:14:05 +0000 (11:14 +0200)]
endurance_plot: use one_plot_set() in generate_plot_shmem()

5 years agoendurance_plot: use one_plot_set() in generate_plot_processes_global()
Tommi Rantala [Thu, 8 Dec 2011 09:13:09 +0000 (11:13 +0200)]
endurance_plot: use one_plot_set() in generate_plot_processes_global()

5 years agoendurance_plot: use one_plot_set() in generate_plot_loadavg()
Tommi Rantala [Thu, 8 Dec 2011 09:12:29 +0000 (11:12 +0200)]
endurance_plot: use one_plot_set() in generate_plot_loadavg()

5 years agoendurance_plot: use one_plot_set() in generate_plot_ctx()
Tommi Rantala [Thu, 8 Dec 2011 09:11:04 +0000 (11:11 +0200)]
endurance_plot: use one_plot_set() in generate_plot_ctx()

5 years agoendurance_plot: rewrite generate_plot_pagetypeinfo()
Tommi Rantala [Thu, 8 Dec 2011 09:03:31 +0000 (11:03 +0200)]
endurance_plot: rewrite generate_plot_pagetypeinfo()

5 years agoendurance_plot: catch 'isolate' in process_pagetypeinfo()
Tommi Rantala [Thu, 8 Dec 2011 08:59:38 +0000 (10:59 +0200)]
endurance_plot: catch 'isolate' in process_pagetypeinfo()

5 years agoendurance_plot: check required arguments in one_plot_set()
Tommi Rantala [Wed, 7 Dec 2011 09:47:25 +0000 (11:47 +0200)]
endurance_plot: check required arguments in one_plot_set()

Some of the arguments to one_plot_set() are always expected to be found.

5 years agoendurance_plot: add gnuplot 'axes' parameter support in one_plot_set()
Tommi Rantala [Wed, 7 Dec 2011 09:14:33 +0000 (11:14 +0200)]
endurance_plot: add gnuplot 'axes' parameter support in one_plot_set()