[hg] releases: a little bit more sftp statistics

  • From: Vladimir Kvashin < >
  • To:
  • Subject: [hg] releases: a little bit more sftp statistics
  • Date: Fri, 21 Dec 2012 14:09:56 -0800

changeset 158dc12c1f5f in releases ((none))
details: http://hg.netbeans.org/releases/rev/158dc12c1f5f
description:
        a little bit more sftp statistics

diffstat:

 
dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/SftpSupport.java
 |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (23 lines):

diff --git 
a/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/SftpSupport.java
 
b/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/SftpSupport.java
--- 
a/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/SftpSupport.java
+++ 
b/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/SftpSupport.java
@@ -221,6 +221,7 @@
 
         @Override
         public Integer call() throws InterruptedException {
+            long time = System.currentTimeMillis();
             int rc = -1;
             try {                
                 Thread.currentThread().setName(PREFIX + ": " + 
getTraceName()); // NOI18N
@@ -259,8 +260,10 @@
             } catch (ExecutionException ex) {
                 logException(ex);
                 rc = 7;
+            } finally {
+                time = System.currentTimeMillis() - time;
             }
-            LOG.log(Level.FINE, "{0}{1}", new Object[]{getTraceName(), rc == 
0 ? " OK" : " FAILED"});
+            LOG.log(Level.FINE, "{0}{1} ({2} ms)", new 
Object[]{getTraceName(), rc == 0 ? " OK" : " FAILED", time});
             return rc;
         }
 

[hg] releases: a little bit more sftp statistics

Vladimir Kvashin 12/21/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close