pcp
[Top] [All Lists]

pcp updates: python merge

To: pcp@xxxxxxxxxxx
Subject: pcp updates: python merge
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 10 Apr 2013 09:05:34 -0400 (EDT)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <276534545.2227812.1365599121236.JavaMail.root@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: ciSAktbkTJCgfFRxMhahgYZJipEFeQ==
Thread-topic: pcp updates: python merge
Changes committed to git://oss.sgi.com/nathans/pcp.git dev

 qa/255                       |   33 
 qa/578                       |   30 
 qa/704                       |   46 +
 qa/704.out                   |   50 +
 qa/707                       |    5 
 qa/707.out                   |    1 
 qa/709                       |   14 
 qa/709.out                   |   33 
 qa/common.check              |   28 
 qa/group                     |    1 
 qa/src/GNUlocaldefs          |    6 
 qa/src/test_mmv.python       |  111 ++
 qa/src/test_pcp.python       |   28 
 src/GNUmakefile              |    6 
 src/pmatop/GNUmakefile       |   28 
 src/pmatop/pmatop.py         |  579 +++++++++++++++
 src/pmcollectl/pmatop.py     | 1614 +++++++++++++++++++++----------------------
 src/pmcollectl/pmcollectl.py | 1018 ++++++++-------------------
 src/pmcollectl/pmsubsys.py   |  924 ++++++++++++------------
 src/python/GNUmakefile       |    2 
 src/python/mmv.c             |   68 +
 src/python/pcp.py            |    7 
 src/python/pcp/GNUmakefile   |    5 
 src/python/pcp/__init__.py   |    4 
 src/python/pcp/mmv.py        |  327 ++++++++
 src/python/pcp/pmda.py       |   33 
 src/python/pcp/pmi.py        |  110 +-
 src/python/pcp/pmsubsys.py   |  349 +++++++++
 src/python/pmda.c            |  192 +++++
 src/python/setup.py          |    1 
 30 files changed, 3535 insertions(+), 2118 deletions(-)

commit 91709fb1f770d417192e4be6f5282b7dec0207e4
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Wed Apr 10 12:06:06 2013 +1000

    Move pmsubsys python module somewhere it can be shared
    
    As a result we can also remove pmatop into its own spot
    rather than alongside pmcollectl.  Some initial pylint
    work done to begin pmsubsys cleanup, more remains, and
    further conversion work is also still need for both of
    pmcollectl and pmatop.

commit 28836d5cf6e7efc81bd1c26cc6b63e200939418d
Merge: 0e0aaa7 195e951
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Wed Apr 10 11:44:13 2013 +1000

    Merge branch 'scox/dev' of ../pcpfans into dev
    
    Conflicts:
        qa/707
        qa/src/test_pcp.python
        src/pmcollectl/pmcollectl.py
        src/python/pcp.py
    
    Conflicts resolved manually.  Some work remains - need to
    move pmsubsys next (bit more work beyond just a basic merge
    though, so will be in a followup commit).

commit 0e0aaa77f1935e76ac2b86bc65bd3d826b1d2adb
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Wed Apr 10 11:09:22 2013 +1000

    Initial version of the MMV python wrapper module
    
    ctypes wrapper for libpcp_mmv python client programs - not
    yet fully functional, but not too far off either.
    
    Exercised by a test_mmv python script, and test 704 which
    is intended to be a full end-to-end test (all the way from
    metric generation to verifying the metrics via pmdammv).
    
    Refactored the duplicated _check_agent from 255 & 578 and
    made use of it here in 704 to ensure sanity in the initial
    testing environment.

commit 195e95100f46cb8555f6f923228e07fa4706e8d9
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Fri Apr 5 23:27:47 2013 -0400

    Improve replay handling and error reporting.
    
    * pmcollectl.py (record): Don't create containing dir for archive.
      (main): Setup interrupt metrics.
      Default to including all metrics in archive if none specified.
      Improve missing archive metrics message.
    * pmsubsys.py (_pmsubsys): Add init_metrics. Use it for interrupt.

commit bfa19564a44832a12549d9651abff661e2299395
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Thu Apr 4 12:22:44 2013 -0400

    Add archive testing.
    
    * qa/707: Add playback testing.
    * qa/src/test_pcp.python: Don't GetChildren for archives.
      Don't hardcode cpu number.
    * python/pcp.py (pmGetArchiveLabel): Remove loglabel parameter.

commit c6bfc687d70e67df54cb9f176c1dda84bffacb1c
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Tue Apr 2 21:45:03 2013 -0400

    Test playback.  Always fetch scalars.
    
    * qa/709: Add playback testing.
    * pmsubsys.py (get_scalar_value): Also fetch the value.
    * pmatop.py: Use get_scalar_value.
    * pmcollectl.py: Use get_scalar_value.
      (main): Improve unimplemented subsystem handling.

commit 1f04a218296ce7bf344c9359fcf02b3f47530d94
Merge: 92315da 1b8fdae
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Tue Mar 26 17:25:23 2013 -0400

    Merge branch 'dev' into scox/dev
    Interactive commands, new metrics, improved output, save/replay

commit 92315da8e969b1f0f34ac7bdac94dbdf5507aacf
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Tue Mar 26 17:23:39 2013 -0400

    Interactive commands, new metrics, improved output, save/replay
    
    * pmatop.py (_atop_print): Add set_line, next_line, put_value
      (_disk_print): Add LVM
      (main): Add -w, -r for file/replay.  Add user interactive command 
handling.
    * pmcollectl.py (_disk_collect_print): New get_scalar_value usage.
    * pmsubsys.py (get_scalar_value): Also fetch the value.

commit 5ff36fce075313f743787e0186dc3ec64386e0d0
Merge: 82bba37 a59e015
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Wed Mar 13 16:58:33 2013 -0400

    Improve pmatop.py output formatting.
    
    Merge branch 'dev' into scox/dev

commit 82bba3764b1d49f0db1476f75731fe10d5e2e47b
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Wed Mar 13 16:55:48 2013 -0400

    Improve pmatop.py output formatting.
    
    * pmatop.py (_*_print): Output one metric per addstr call.
    * pmsubsys.py (_pmsubsys):  Handle PM_TYPE_STRING.

commit 33097c9d1fa014852a911c5b651c202c66098801
Merge: f52ed79 d987bbc
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Sun Mar 10 19:55:54 2013 -0400

    Add pmatop.py.
    
    * pmsubsys.py (pmsubsys): Rename metric_name to metric_pmids,
      metric_desc to metric_descs, metric_value to metric_values. Remove
      is_implemented.
    * pmatop.py: Initial version.

commit f52ed79ed26d441f1ce36aa86dd26c71a89c334d
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Sun Mar 10 19:53:29 2013 -0400

    Add pmatop.py.
    
    * pmsubsys.py (pmsubsys): Rename metric_name to metric_pmids,
      metric_desc to metric_descs, metric_value to metric_values. Remove
      is_implemented.
    * pmatop.py: Initial version.

commit d3543533289f58aacecbdd07bc84786a470c8c92
Author: Stan Cox <scox@xxxxxxxxxx>
Date:   Sat Feb 23 21:24:22 2013 -0500

    Extract subsystem accessing into pmsubsys.py.
    
    * pmcollectl.py (subsys, cpu, interrupt, disk, memory, net): Move
      to pmsubsys.py.  Move most of the class machinery to pmsubsys.
    * pmsubsys.py: New.

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: python merge, Nathan Scott <=