Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename to QuickProfiler and proper interface

  • Loading branch information...
commit ccf80650b2abb1fc0bdcdedc5975a34ad032c6f2 1 parent 773bc20
@drochwerger-trulia drochwerger-trulia authored
View
25 ProfileObservable.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Classes that want to be monitored by the QuickProfiler
+ * should implement this interface.
+ *
+ * @author David Rochwerger <catch.dave@gmail.com>
+ */
+interface ProfileObservable
+{
+
+ /**
+ *
+ * @param QuickProfiler $profiler
+ */
+ public function attachProfiler(QuickProfiler $profiler);
+
+ /**
+ * Add an event to the profiler
+ *
+ * @param array $details
+ * @param float $time
+ * @param integer $memory
+ */
+ public function addProfileEvent(array $details, $time, $memory);
+}
View
3  PhpQuickProfiler.php → QuickProfiler.php
@@ -15,7 +15,8 @@
- - - - - - - - - - - - - - - - - - - - - */
-class PhpQuickProfiler {
+class QuickProfiler
+{
public $output = array();
public $config = '';
Please sign in to comment.
Something went wrong with that request. Please try again.