001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.runtime.debug;
020
021// FUTURE add to extended interface and delete this interface
022
023import lucee.runtime.PageContext;
024import lucee.runtime.PageSource;
025import lucee.runtime.config.Config;
026import lucee.runtime.db.SQL;
027import lucee.runtime.type.Query;
028
029public interface DebuggerPro extends Debugger {
030        
031        
032        
033
034    /**
035     * add new query execution time
036     * @param query 
037     * @param datasource 
038     * @param name
039     * @param sql
040     * @param recordcount
041     * @param src
042     * @param time 
043     * @deprecated use instead <code>addQuery(Query query,String datasource,String name,SQL sql, int recordcount, PageSource src,long time)</code>
044     */
045    public void addQuery(Query query,String datasource,String name,SQL sql, int recordcount, PageSource src,int time);
046    
047    /**
048     * add new query execution time
049     * @param query 
050     * @param datasource 
051     * @param name
052     * @param sql
053     * @param recordcount
054     * @param src
055     * @param time 
056     */
057    public void addQuery(Query query,String datasource,String name,SQL sql, int recordcount, PageSource src,long time);
058    
059    public DebugTrace[] getTraces(PageContext pc);
060    
061    public DebugDump addDump(PageSource ps,String dump);
062        
063    
064    
065    
066    
067    
068    public void setOutputLog(DebugOutputLog outputLog);
069    
070    public void init(Config config);
071}