Bläddra i källkod

Instrumented the code to measure the impact of object reloads

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2907 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 år sedan
förälder
incheckning
83b01f55e2
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      core/dbobject.class.php

+ 2 - 0
core/dbobject.class.php

@@ -433,7 +433,9 @@ abstract class DBObject
 			{
 				// Lazy load (polymorphism): complete by reloading the entire object
 				// #@# non-scalar attributes.... handle that differently?
+				$oKPI = new ExecutionKPI();
 				$this->Reload();
+				$oKPI->ComputeStats('Reload', get_class($this).'/'.$sAttCode);
 			}
 			elseif ($sAttCode == 'friendlyname')
 			{