New Upstream Snapshot - ruby-rblineprof
Ready changes
Summary
Merged new upstream version: 0.3.7+git20161030.1.343cedb (was: 0.3.7).
Resulting package
Built on 2023-01-19T07:06 (took 2m34s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots ruby-rblineprof-dbgsymapt install -t fresh-snapshots ruby-rblineprof
Lintian Result
- ruby-rblineprof-dbgsym_0.3.7+git20161030.1.343cedb-1~jan+nus2_amd64.deb
- ruby-rblineprof_0.3.7+git20161030.1.343cedb-1~jan+nus2.dsc
- ruby-rblineprof_0.3.7+git20161030.1.343cedb-1~jan+nus2_amd64.buildinfo
- ruby-rblineprof_0.3.7+git20161030.1.343cedb-1~jan+nus2_amd64.deb
- ruby-rblineprof_0.3.7+git20161030.1.343cedb-1~jan+nus2_amd64.changes
Diff
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 72e5582..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/tmp
-/lib/*.bundle
-/lib/*.so
diff --git a/README.md b/README.md
index 64972cf..e14f528 100644
--- a/README.md
+++ b/README.md
@@ -1,34 +1,88 @@
# rblineprof
+## Installation
+
+`gem install rblineprof`
+
+Or in your Gemfile:
+
+`gem 'rblineprof'`
+
+## Usage
+
+```
+require 'rblineprof'
+
+profile = lineprof(/./) do
+ sleep 0.001
+
+ 100.times do
+ sleep 0.001
+
+ 1*2*3
+ 4*5*6
+ 7*8*9*10*11*12*13*14*15
+ 2**32
+ 2**128
+ end
+end
+
+file = profile.keys.first
+
+File.readlines(file).each_with_index do |line, num|
+ wall, cpu, calls, allocations = profile[file][num + 1]
+
+ if wall > 0 || cpu > 0 || calls > 0
+ printf(
+ "% 5.1fms + % 6.1fms (% 4d) | %s",
+ cpu / 1000.0,
+ (wall - cpu) / 1000.0,
+ calls,
+ line
+ )
+ else
+ printf " | %s", line
+ end
+end
```
-% ruby -C ext extconf.rb
-% make -C ext
-% ruby test.rb
- | $:.unshift 'ext'
- | require 'rblineprof'
- |
- | profile = lineprof(/./) do
- 1.2ms | sleep 0.001
- |
- 0.1ms | 100.times do
- |
- 119.6ms | sleep 0.001
- 0.7ms | 1*2*3
- 0.2ms | 4*5*6
- 0.4ms | 7*8*9*10*11*12*13*14*15
- 0.2ms | 2**32
- 1.4ms | 2**128
- |
- | end
- | end
- |
- | File.readlines(__FILE__).each_with_index do |line, num|
- | if (sample = profile[__FILE__][num+1]) > 0
- | printf "% 8.1fms | %s", sample/1000.0, line
- | else
- | printf " | %s", line
- | end
- | end
+
+Will give you:
+
+```
+ | require 'rblineprof'
+ |
+ | profile = lineprof(/./) do
+ 0.1ms + 1.4ms ( 1) | sleep 0.001
+ |
+ 2.7ms + 132.2ms ( 1) | 100.times do
+ 1.3ms + 131.7ms ( 100) | sleep 0.001
+ |
+ | 1*2*3
+ | 4*5*6
+ | 7*8*9*10*11*12*13*14*15
+ 0.1ms + 0.1ms ( 100) | 2**32
+ 0.6ms + 0.1ms ( 100) | 2**128
+ | end
+ | end
+ |
+ | file = profile.keys.first
+ |
+ | File.readlines(file).each_with_index do |line, num|
+ | wall, cpu, calls, allocations = profile[file][num + 1]
+ |
+ | if wall > 0 || cpu > 0 || calls > 0
+ | printf(
+ | "% 5.1fms + % 6.1fms (% 4d) | %s",
+ | cpu / 1000.0,
+ | (wall - cpu) / 1000.0,
+ | calls,
+ | line
+ | )
+ | else
+ | printf " | %s", line
+ | end
+ | end
+
```
### Rails integration
diff --git a/debian/changelog b/debian/changelog
index 4db254e..13e3a09 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ruby-rblineprof (0.3.7-3) UNRELEASED; urgency=medium
+ruby-rblineprof (0.3.7+git20161030.1.343cedb-1) UNRELEASED; urgency=medium
[ Utkarsh Gupta ]
* Add salsa-ci.yml
@@ -11,8 +11,9 @@ ruby-rblineprof (0.3.7-3) UNRELEASED; urgency=medium
* Set upstream metadata fields: Bug-Database, Bug-Submit.
* Update watch file format version to 4.
* Bump debhelper from old 12 to 13.
+ * New upstream snapshot.
- -- Utkarsh Gupta <guptautkarsh2102@gmail.com> Tue, 13 Aug 2019 07:03:33 +0530
+ -- Utkarsh Gupta <guptautkarsh2102@gmail.com> Thu, 19 Jan 2023 07:04:28 -0000
ruby-rblineprof (0.3.7-2) unstable; urgency=medium
diff --git a/debian/patches/0001-Drop-dependency-on-debugger-ruby_core_source.patch b/debian/patches/0001-Drop-dependency-on-debugger-ruby_core_source.patch
index 4aca457..5c634f8 100644
--- a/debian/patches/0001-Drop-dependency-on-debugger-ruby_core_source.patch
+++ b/debian/patches/0001-Drop-dependency-on-debugger-ruby_core_source.patch
@@ -6,10 +6,10 @@ Subject: Drop dependency on debugger-ruby_core_source
rblineprof.gemspec | 1 -
1 file changed, 1 deletion(-)
-diff --git a/rblineprof.gemspec b/rblineprof.gemspec
-index 7a0d269..75183de 100644
---- a/rblineprof.gemspec
-+++ b/rblineprof.gemspec
+Index: ruby-rblineprof.git/rblineprof.gemspec
+===================================================================
+--- ruby-rblineprof.git.orig/rblineprof.gemspec
++++ ruby-rblineprof.git/rblineprof.gemspec
@@ -14,6 +14,5 @@ Gem::Specification.new do |s|
s.license = 'MIT'
Debdiff
File lists identical (after any substitutions)
No differences were encountered between the control files of package ruby-rblineprof
No differences were encountered between the control files of package ruby-rblineprof-dbgsym