← Index
NYTProf Performance Profile   « line view »
For /usr/local/libexec/sympa/task_manager-debug.pl
  Run on Tue Jun 1 22:32:51 2021
Reported on Tue Jun 1 22:35:15 2021

Filename/usr/local/libexec/sympa/Sympa/DatabaseDriver.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111600ns600nsSympa::DatabaseDriver::::required_parametersSympa::DatabaseDriver::required_parameters (xsub)
111500ns500nsSympa::DatabaseDriver::::optional_modulesSympa::DatabaseDriver::optional_modules (xsub)
0000s0sSympa::DatabaseDriver::::AS_BLOBSympa::DatabaseDriver::AS_BLOB
0000s0sSympa::DatabaseDriver::::AS_DOUBLESympa::DatabaseDriver::AS_DOUBLE
0000s0sSympa::DatabaseDriver::::BEGIN@30Sympa::DatabaseDriver::BEGIN@30
0000s0sSympa::DatabaseDriver::::BEGIN@31Sympa::DatabaseDriver::BEGIN@31
0000s0sSympa::DatabaseDriver::::BEGIN@33Sympa::DatabaseDriver::BEGIN@33
0000s0sSympa::DatabaseDriver::::BEGIN@35Sympa::DatabaseDriver::BEGIN@35
0000s0sSympa::DatabaseDriver::::BEGIN@36Sympa::DatabaseDriver::BEGIN@36
0000s0sSympa::DatabaseDriver::::BEGIN@37Sympa::DatabaseDriver::BEGIN@37
0000s0sSympa::DatabaseDriver::::BEGIN@38Sympa::DatabaseDriver::BEGIN@38
0000s0sSympa::DatabaseDriver::::optional_parametersSympa::DatabaseDriver::optional_parameters (xsub)
0000s0sSympa::DatabaseDriver::::translate_typeSympa::DatabaseDriver::translate_type
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# -*- indent-tabs-mode: nil; -*-
2# vim:ft=perl:et:sw=4
3# $Id$
4
5# Sympa - SYsteme de Multi-Postage Automatique
6#
7# Copyright (c) 1997, 1998, 1999 Institut Pasteur & Christophe Wolfhugel
8# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
9# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
10# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
11# Copyright 2018 The Sympa Community. See the AUTHORS.md file at the
12# top-level directory of this distribution and at
13# <https://github.com/sympa-community/sympa.git>.
14#
15# This program is free software; you can redistribute it and/or modify
16# it under the terms of the GNU General Public License as published by
17# the Free Software Foundation; either version 2 of the License, or
18# (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program. If not, see <http://www.gnu.org/licenses/>.
27
28package Sympa::DatabaseDriver;
29
30use strict;
31use warnings;
32
33use base qw(Sympa::Database);
34
35use constant required_modules => [];
36use constant required_parameters => [qw(db_name db_user)];
37use constant optional_modules => [];
38use constant optional_parameters =>
39 [qw(db_host db_port db_passwd db_options db_env)];
40
41sub translate_type {
42 return $_[1];
43}
44
45# For DOUBLE type.
46sub AS_DOUBLE {
47 return $_[1] if scalar @_ > 1;
48 return ();
49}
50
51# For BLOB types.
52sub AS_BLOB {
53 return $_[1] if scalar @_ > 1;
54 return ();
55}
56
571;
58__END__
 
# spent 500ns within Sympa::DatabaseDriver::optional_modules which was called: # once (500ns+0s) by Sympa::Database::connect at line 135 of /usr/local/libexec/sympa/Sympa/Database.pm
sub Sympa::DatabaseDriver::optional_modules; # xsub
# spent 600ns within Sympa::DatabaseDriver::required_parameters which was called: # once (600ns+0s) by Sympa::Database::connect at line 113 of /usr/local/libexec/sympa/Sympa/Database.pm
sub Sympa::DatabaseDriver::required_parameters; # xsub