xref: /aosp_15_r20/external/javasqlite/src/main/java/SQLite/Profile.java (revision fd76c71b147b98c03334ec0945352cee0b39aab1)
1*fd76c71bSTreehugger Robot package SQLite;
2*fd76c71bSTreehugger Robot 
3*fd76c71bSTreehugger Robot /**
4*fd76c71bSTreehugger Robot  * Callback interface for SQLite's profile function.
5*fd76c71bSTreehugger Robot  */
6*fd76c71bSTreehugger Robot 
7*fd76c71bSTreehugger Robot public interface Profile {
8*fd76c71bSTreehugger Robot 
9*fd76c71bSTreehugger Robot     /**
10*fd76c71bSTreehugger Robot      * Callback to profile (ie log) one SQL statement
11*fd76c71bSTreehugger Robot      * with its estimated execution time.
12*fd76c71bSTreehugger Robot      *
13*fd76c71bSTreehugger Robot      * @param stmt SQL statement string
14*fd76c71bSTreehugger Robot      * @param est  estimated execution time in milliseconds.
15*fd76c71bSTreehugger Robot      */
16*fd76c71bSTreehugger Robot 
profile(String stmt, long est)17*fd76c71bSTreehugger Robot     public void profile(String stmt, long est);
18*fd76c71bSTreehugger Robot }
19*fd76c71bSTreehugger Robot 
20