[Pkg-privacy-commits] [parcimonie] 06/25: Record a bit more memory usage information when $ENV{REPORT_MEMORY_USAGE} is set to a true value.
Intrigeri
intrigeri at moszumanska.debian.org
Sun May 29 11:33:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository parcimonie.
commit 4287da6b17d03fe3165a75fb939103cceb4921d6
Author: intrigeri <intrigeri at boum.org>
Date: Mon Dec 28 15:18:35 2015 +0000
Record a bit more memory usage information when $ENV{REPORT_MEMORY_USAGE} is set to a true value.
---
lib/App/Parcimonie/Daemon.pm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/App/Parcimonie/Daemon.pm b/lib/App/Parcimonie/Daemon.pm
index 3355b9d..e3a4e45 100644
--- a/lib/App/Parcimonie/Daemon.pm
+++ b/lib/App/Parcimonie/Daemon.pm
@@ -130,16 +130,22 @@ Post-constructor.
sub BUILD {
my $self = shift;
+ $self->record_memory_usage("[BUILD]: entering");
+
$self->keyserver_defined_on_command_line
or checkGpgHasDefinedKeyserver($self->gnupg_options);
if ($self->with_dbus) {
+ $self->record_memory_usage("[BUILD]: starting to load D-Bus dependencies");
require App::Parcimonie::DBus::Object;
require Net::DBus;
require Net::DBus::Reactor;
require Net::DBus::Service;
require Net::DBus::Test::MockObject;
+ $self->record_memory_usage("[BUILD]: finished loading D-Bus dependencies");
}
+
+ $self->record_memory_usage("[BUILD]: leaving");
}
sub _build_dbus_object {
@@ -170,6 +176,8 @@ sub run {
my $opt = shift;
my $args = shift;
+ $self->record_memory_usage("[run]: entering");
+
if ($self->with_dbus) {
$self->run_with_dbus();
}
@@ -197,6 +205,8 @@ sub run_without_dbus {
sub run_with_dbus {
my $self = shift;
+ $self->record_memory_usage("[run_with_dbus]: entering");
+
my $reactor = Net::DBus::Reactor->main();
my $initial_sleep_time = 1 * 1000;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/parcimonie.git
More information about the Pkg-privacy-commits
mailing list