Commit graph

17 commits

Author SHA1 Message Date
d21d9fdb95
Switch to built-in png loader
Since tk8.6 the ability to load png files has been built in, so libtk-img
(or tkpng) is not needed at all.
2022-06-25 09:05:12 -05:00
Dewey Garrett
271b8ab07b latency-histogram:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:08:28 -07:00
Arvid Brodin
9f64c489e4 Display SI-standard time unit in latency-histogram.
latency-histogram uses a mix of uS and uSec as units of time. But
large case S is the unit Siemens, and second should never be
shortened to "sec" or "Sec".

This patch changes to [greek letter mu]s in the GUI but uses "us" in
the terminal, since not all terminals support UTF-8.
2021-04-09 11:08:53 +02:00
Dewey Garrett
360ace0ab9 latency-histogram fix typos in help message 2018-11-26 19:20:13 -07:00
Lubomir Rintel
a63ec765cb all: update FSF address in GPL 2.0 notices
If you write to 59 Temple Place you're unlikely to get a response.
Let's realign the address with a more up-to-date one from [1].

  [1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

This is purely a cosmetic change, doesn't affect the meaning of the
license. Done to make rpmlint happy.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2017-09-15 13:06:22 +02:00
Jeff Epler
ad5ba34c45 Merge remote-tracking branch 'origin/2.7' 2016-10-05 21:04:50 -05:00
Dewey Garrett
23dcacb35e latency-histogram: more info in error message
Expand error message to show bogus variance value.

Using a mis-configured (non-realtime?) kernel resulted
in error message that occurs for unrealistic negative variance
calculation.

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-10-05 15:20:47 -07:00
Dewey Garrett
518a33b6a3 latency-histogram: new option (--nox) for no X gui
if --nox, report to stdout for each thread:
  elapsed_time, thread name, min, max, standard_deviation

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-09-20 20:53:28 -07:00
Jeff Epler
99cd0dda91 latency-histogram: set pixel size of window explicitly
When testing, I noticed that if X detected an unusually low screen
DPI, the size of the graph area in latency-histogram would be small
relative to the rest of the window.

This is because the default size of a blt barchart is in inches!  By
specifying pixel sizes, the window will get the same layout no
matter the screen's detected DPI.  The numbers chosen are close to
the original values if DPI=96, a typical value assumed for normal
computer monitors (for instance, a 23" full HD monitor or a 15",
720p monitor)

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-06-28 17:11:32 -05:00
Dewey Garrett
74c09b68a7 latency-histogram: include min,max,stddev
Also:
  When a bin had only one count, it was not
  showing when using y axis logscale -- so alter
  bin value from 1 to 1.1 to appear as a pip
  above the yaxis 1E0 line.

  Rearrange documenting lines for better fit with --nobase

Suggested by Peter Wallace
Thanks to jepler for rtapi_math64 with rtapi_div_u64

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-22 07:16:25 -07:00
Dewey Garrett
cb7c1ee950 latency-histogram: show linuxcnc version
also update latency-histogram.png to show field names on top two lines

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-16 11:00:34 -07:00
Dewey Garrett
ffd212ccde Latency_Test.txt: describe other latency utils
latency-plot, latency-histogram

also: remove internal versioning in latency-histogram

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2015-02-14 17:01:08 -07:00
Sebastian Kuzminsky
37f73ab5f0 Merge origin/2.6 into 2.7 (using imerge) 2014-12-08 23:25:51 -07:00
Sebastian Kuzminsky
8172042d8c latency-histogram: clean up on ^C
Catch SIGINT (^C on the keyboard) and call the cleanup function to stop
realtime and unload kernel modules (instead of just exiting and leaving
things set up).

Since Tcl doesn't support signal handling natively we need to use Extended
Tcl, so depend on that...

Thanks to Peter Wallace for the bug report.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2014-12-08 20:08:45 -07:00
Dewey Garrett
3a0e07da83 Application menu fixes
Remove latency-plot as an Application menu item as it doesn't work for
a system which has _only_ a RIP build because the environment for
execution of commands from the Application menu is limited.
(unaware of linuxcnc RIP vars, for example, package require Hal fails)

Provide an alternative point-and-click access for latency-plot,
latency-histogram:
  Since demo scripts in configs/apps/ are invoked from the main script
  (scripts/linuxcnc) where more environemntal vars are available
  these programs are modifed to work for a system with only a RIP build.

also:
  For RIP only system: make configs/apps/xhc-hb04 demos work
  Renaming for variable EMC2_SCRIPT
  Improve pyvcp_demo exit handling
  linuxcnc_info use editor search
  app scripts: prepend auto_path (RIP, gui usage)

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2014-09-28 16:18:52 -07:00
Jeff Epler
3beb85d3b8 latency-histogram: Use getconf for ncpus
The old /proc-parsing code is wrong on ARM systems, for whatever reason.
This is right everywhere I checked.

getconf is in libc-bin, so it should be available on all Linux.  (In fact,
getconf is specified by POSIX, but _NPROCESSORS_ONLN is a Linux extension.
Still, this is no less portable than grepping /proc)
2014-08-05 11:46:58 -05:00
Dewey Garrett
ef7d8bf0d0 configs/apps: new directory and .demo support
A new file type (.demo) in the configs tree is supported by the linuxcnc
script and the configuration selector (pickconfig.tcl).  A .demo file
must be executable and is typically implemented as a shell script that
invokes an application with appropriate parameters.

This facility makes it possible to demonstrate apps related to linuxcnc
using pickconfig without starting linuxcnc or requiring a complete ini
file.

Thanks to Chris Morley for suggestion

Details:
    Modify pickconfig to support .demo files
       Use noforcecopy for .demo files which should not be copied to
       a user dir
    Provide .demo apps for halrun,info,parport,xhc-hb04
    Provide .demo apps for gladevcp,pyvcp
    New script: linuxcnc_var and removal of several scripts/*.in.
    Rename latency scripts for consistency (and reduce merge overwrites).
    Remove latencyplot from menu.
    Moved gladevcp demo apps from root/gladevcp to configs/apps/gladevcp
       The root/gladevcp/ examples were orphans and didn't work with
          the configuration selector
       Change .py files so persistent files are named .save instead of
          .ini to avoid conflict with .ini files which the configuration
          selector presumes are working configs.
       Rebranding in some py files
       Some clarifications within copied README files
       Consolidate by-widgets dir
    Update docs
       New doc for configuration selector (needs formatting)
       Update for configs tree rearrangement
    Rename 2 non working sim .ini files to .ini.notworking
2014-03-22 06:13:56 -07:00
Renamed from scripts/latencyhistogram.in (Browse further)