New Upstream Snapshot - jitterdebugger
Ready changes
Summary
Merged new upstream version: 0.3.1+git20220221.f7beb27 (was: 0.3.1+git20200117.b90ff3a).
Resulting package
Built on 2022-10-16T20:20 (took 2m41s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots jitterdebugger-allapt install -t fresh-snapshots jitterdebugger-dbgsymapt install -t fresh-snapshots jitterdebugger-utils-dbgsymapt install -t fresh-snapshots jitterdebugger-utilsapt install -t fresh-snapshots jitterdebugger
Lintian Result
- jitterdebugger-all_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.deb
- jitterdebugger-dbgsym_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.deb
- jitterdebugger-utils-dbgsym_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.deb
- jitterdebugger-utils_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.deb
- jitterdebugger_0.3.1+git20220221.f7beb27-1~jan+nus1.dsc
- jitterdebugger_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.buildinfo
- jitterdebugger_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.changes
- jitterdebugger_0.3.1+git20220221.f7beb27-1~jan+nus1_amd64.deb
Diff
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e7d898d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-# SPDX-License-Identifier: MIT
-
-language: c
-
-compiler:
- - gcc
-matrix:
- include:
- - os: linux
- before_install:
- - docker pull debian:latest
- - docker run --name travis-ci -v $TRAVIS_BUILD_DIR:/travis -w /travis -td debian:latest /bin/bash
- install:
- - docker exec -ti travis-ci bash -c "apt-get update"
- - docker exec -ti travis-ci bash -c "apt-get install -y build-essential git libhdf5-dev"
- - os: linux
- before_install:
- - docker pull debian:testing
- - docker run --name travis-ci -v $TRAVIS_BUILD_DIR:/travis -w /travis -td debian:testing /bin/bash
- install:
- - docker exec -ti travis-ci bash -c "apt-get update"
- - docker exec -ti travis-ci bash -c "apt-get install -y build-essential git libhdf5-dev"
- - os: linux
- before_install:
- - docker pull fedora:latest
- - docker run --name travis-ci -v $TRAVIS_BUILD_DIR:/travis -w /travis -td fedora:latest /bin/bash
- install:
- - docker exec -ti travis-ci bash -c "dnf -y update"
- - docker exec -ti travis-ci bash -c "dnf -y install @development-tools git hdf5-devel redhat-rpm-config"
-
-script:
- - docker exec -ti travis-ci bash -c "CC=$CC CXX=$CXX make"
-after_script:
- - docker stop travis-ci
diff --git a/README.rst b/README.rst
index 515cedc..0246a9b 100644
--- a/README.rst
+++ b/README.rst
@@ -19,24 +19,6 @@ measurement out of the box.
Furthermore, the tool supports storing all samples for post
processing.
-
-############
-Build status
-############
-
-+------------+------------------+
-| Branch | Build Status |
-+============+==================+
-| ``master`` | |travis-master|_ |
-+------------+------------------+
-| ``next`` | |travis-next|_ |
-+------------+------------------+
-
-.. |travis-master| image:: https://travis-ci.org/igaw/jitterdebugger.svg?branch=master
-.. _travis-master: https://travis-ci.org/igaw/jitterdebugger/branches
-.. |travis-next| image:: https://travis-ci.org/igaw/jitterdebugger.svg?branch=next
-.. _travis-next: https://travis-ci.org/igaw/jitterdebugger/branches
-
#################
Runtime Depenency
#################
diff --git a/debian/changelog b/debian/changelog
index a05d340..a5d847e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+jitterdebugger (0.3.1+git20220221.f7beb27-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Sun, 16 Oct 2022 20:18:21 -0000
+
jitterdebugger (0.3.1+git20200117.b90ff3a-4) unstable; urgency=medium
* d/control:
diff --git a/jitterdebugger.c b/jitterdebugger.c
index bc4a0c9..836a152 100644
--- a/jitterdebugger.c
+++ b/jitterdebugger.c
@@ -352,7 +352,7 @@ static void *worker(void *arg)
if (err)
err_handler(err, "clock_gettime()");
- next = ts_add(now, interval);
+ next = now;
while (!READ_ONCE(jd_shutdown)) {
next = ts_add(next, interval);
@@ -790,7 +790,7 @@ int main(int argc, char *argv[])
const char *unit = "us";
if (interval_resolution == 1)
unit = "ns";
- printf("Thread %lu on CPU %u hit %lu %s latency\n",
+ printf("Thread %lu on CPU %u hit %" PRIu64 " %s latency\n",
(long)s[i].tid, i, s[i].max, unit);
}
}
@@ -804,7 +804,7 @@ int main(int argc, char *argv[])
free(s);
if (tracemark_fd > 0)
- close(trace_fd);
+ close(tracemark_fd);
if (trace_fd > 0)
close(trace_fd);
diff --git a/jitterplot b/jitterplot
index 8148741..a3be79e 100755
--- a/jitterplot
+++ b/jitterplot
@@ -16,7 +16,7 @@ __version__ = '0.3'
# https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#evaluation-order-matters
pd.options.mode.chained_assignment = None
-def plot_histogram(filename):
+def plot_histogram(filename, outfilename):
with open(filename) as file:
rawdata = json.load(file)
@@ -40,6 +40,8 @@ def plot_histogram(filename):
L = ax.legend()
plt.setp(L.texts, family='monospace')
+ if outfilename is not None:
+ plt.savefig(outfilename)
plt.show()
def load_samples(filename):
@@ -51,7 +53,7 @@ def load_samples(filename):
df = pd.DataFrame(data)
return df
-def plot_all_cpus(df):
+def plot_all_cpus(df, outfilename):
ids = df["CPUID"].unique()
max_jitter = max(df["Value"])
@@ -66,6 +68,8 @@ def plot_all_cpus(df):
ax.set_xlabel("Time [s]")
ax.set_ylabel("Latency [us]")
ax.set_ylim(bottom=0, top=max_jitter)
+ if outfilename is not None:
+ plt.savefig(outfilename)
plt.show()
@@ -73,6 +77,8 @@ def main():
ap = argparse.ArgumentParser(description='Plot statistics collected with jitterdebugger')
ap.add_argument('--version', action='version',
version='%(prog)s ' + __version__)
+ ap.add_argument('--output', help='output file name to save figure',
+ default=None, action='store', type=str)
sap = ap.add_subparsers(dest='cmd')
hrs = sap.add_parser('hist', help='Print historgram')
@@ -86,14 +92,14 @@ def main():
fname = args.HIST_FILE
if os.path.isdir(fname):
fname = fname + '/results.json'
- plot_histogram(fname)
+ plot_histogram(fname, args.output)
elif args.cmd == 'samples':
fname = args.SAMPLE_FILE
if os.path.isdir(fname):
fname = fname + '/samples.raw'
df = load_samples(fname)
- plot_all_cpus(df)
+ plot_all_cpus(df, args.output)
if __name__ == '__main__':
main()
diff --git a/man/jitterplot.1 b/man/jitterplot.1
index b6f0d8c..064f376 100644
--- a/man/jitterplot.1
+++ b/man/jitterplot.1
@@ -20,16 +20,23 @@ Show help text and exit.
.TP
.BI "--version"
Show jitterplot version.
+.TP
+.BI "--output <file>"
+Filename to save the figure to, for non-interactive plotting. The format
+can be controlled via the file extension (e.g. "png", "pdf", "svg")
+
.SH EXAMPLES
.EX
# jitterdebugger -f results.json
^C
# jitterplot hist results.json
+# jitterplot --output /tmp/hist.pdf hist results.json
# jitterdebugger -o samples.raw
^C
# jittersamples samples.raw > samples.txt
# jitterplot samples samples.txt
+# jitterplot --output /tmp/samples.png samples samples.txt
.EE
.SH SEE ALSO
.ad l
Debdiff
[The following lists of changes regard files as different if they have different names, permissions or owners.]
Files in second set of .debs but not in first
-rw-r--r-- root/root /usr/lib/debug/.build-id/05/630ef072a3762fbd75ef215b206f542fe4a441.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/3d/551570181c1cc5bec7aa42364831931c4c3e91.debug
Files in first set of .debs but not in second
-rw-r--r-- root/root /usr/lib/debug/.build-id/0f/42ce60ca2cae4ee3cabea06cba6607fc86f7f8.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/d6/b19be5f6d0108449a7004440e46f09d9c2c16e.debug
Control files of package jitterdebugger: lines which differ (wdiff format)
Depends: libc6 (>= 2.32) 2.34)
No differences were encountered between the control files of package jitterdebugger-all
Control files of package jitterdebugger-dbgsym: lines which differ (wdiff format)
Build-Ids: 0f42ce60ca2cae4ee3cabea06cba6607fc86f7f8 3d551570181c1cc5bec7aa42364831931c4c3e91
Control files of package jitterdebugger-utils: lines which differ (wdiff format)
Depends: libc6 (>= 2.7), 2.34), gir1.2-gtk-3.0, python3, python3-matplotlib
Control files of package jitterdebugger-utils-dbgsym: lines which differ (wdiff format)
Build-Ids: d6b19be5f6d0108449a7004440e46f09d9c2c16e 05630ef072a3762fbd75ef215b206f542fe4a441