summaryrefslogtreecommitdiff
path: root/ace/Profile_Timer.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2000-11-11 02:31:09 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2000-11-11 02:31:09 +0000
commite63339c2ace7aebc8e48ec9609483509db0bdd33 (patch)
treef3b9742b8c3cf3376f6bd3a679697c5716047386 /ace/Profile_Timer.cpp
parent9d230d6142aac1e92f59b8c26202f8c4c758c5e8 (diff)
downloadATCD-e63339c2ace7aebc8e48ec9609483509db0bdd33.tar.gz
ChangeLogTag:Fri Nov 10 20:26:01 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/Profile_Timer.cpp')
-rw-r--r--ace/Profile_Timer.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index 0ec1f9ba00d..09d7172c531 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -32,8 +32,11 @@ ACE_Profile_Timer::ACE_Profile_Timer (void)
char buf[20];
ACE_OS::sprintf (buf, "/proc/%d", ACE_static_cast (int, ACE_OS::getpid ()));
- if ((this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0)) == -1)
- ACE_OS::perror (buf);
+ this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0);
+ if (this->proc_handle_ == -1)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%p\n"),
+ buf));
# elif defined (ACE_HAS_GETRUSAGE)
ACE_OS::memset (&this->begin_time_, 0, sizeof this->begin_time_);
ACE_OS::memset (&this->end_time_, 0, sizeof this->end_time_);
@@ -47,7 +50,8 @@ ACE_Profile_Timer::~ACE_Profile_Timer (void)
ACE_TRACE ("ACE_Profile_Timer::~ACE_Profile_Timer");
# if defined (ACE_HAS_PRUSAGE_T)
if (ACE_OS::close (this->proc_handle_) == -1)
- ACE_OS::perror ("ACE_Profile_Timer::~ACE_Profile_Timer");
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("ACE_Profile_Timer::~ACE_Profile_Timer")));
# endif /* ACE_HAS_PRUSAGE_T */
}