Commits

Tuukka Norri committed 9dac0cb

Added a probe for recording query duration
- Also made the relevant changes to the trace template.

Comments (0)

Files changed (3)

BaseTenTemplate.tracetemplate

Binary file modified.

Sources/PGTSProbes.d

 provider PGTS
 {
 	probe send_query (void* connection, long sendStatus, char* query, char* parameters);
+	probe finish_query ();
+	
 	probe received_notification (void* connection, long be_pid, char* name, void* extra);
 	
 	probe begin_sleep_preparation ();

Sources/PGTSQueryDescription.m

     {
         mFinished = YES;
 		
-		//Finished query probe goes here if needed.
+		if (PGTS_FINISH_QUERY_ENABLED ())
+			PGTS_FINISH_QUERY ();
     }
     return retval;
 }