Commits

Tuukka Norri  committed 9dac0cb

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

  • Participants
  • Parent commits e7f3f0b
  • Branches PGTS-NG

Comments (0)

Files changed (3)

File BaseTenTemplate.tracetemplate

Binary file modified.

File 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 ();

File Sources/PGTSQueryDescription.m

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