소스 검색

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 년 전
부모
커밋
83b01f55e2
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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')
 			{