Project

General

Profile

Revision 3270

Added by Jing Tao about 14 years ago

Add new method to record the total search time to a file.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1070 1070
        queryobj.findDocuments(response, out, params, user, groups, sessionid);
1071 1071
        double outPutTime = System.currentTimeMillis() / 1000;
1072 1072
        Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
1073
        logMetacat.warn("========Total search time for action 'squery': "
1073
        logMetacat.warn("Total search time for action 'squery': "
1074 1074
                + (outPutTime - startTime));
1075
        MetaCatUtil.writeDebugToFile("---------------------------------------------------------------------------------"+
1076
        		"-------------------------------------------------------------------------------Total search time for "
1077
                + (outPutTime - startTime));
1075 1078
    }
1076 1079

  
1077 1080
    /**

Also available in: Unified diff