File tree 1 file changed +1
-23
lines changed
app/code/Magento/CatalogImportExport/Model/Export 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -768,17 +768,6 @@ protected function paginateCollection($page, $pageSize)
768
768
*/
769
769
public function export ()
770
770
{
771
- $ shouldProfile = false ;
772
- if (extension_loaded ('xhprof ' )) {
773
- $ xhprofRoot = "/lukerodgers.co.uk/builds/xhprof " ;
774
- if (is_dir ($ xhprofRoot )) {
775
- $ shouldProfile = true ;
776
- require_once $ xhprofRoot . "/xhprof_lib/utils/xhprof_lib.php " ;
777
- require_once $ xhprofRoot . "/xhprof_lib/utils/xhprof_runs.php " ;
778
- xhprof_enable ();
779
- }
780
- }
781
-
782
771
//Execution time may be very long
783
772
set_time_limit (0 );
784
773
@@ -805,18 +794,7 @@ public function export()
805
794
break ;
806
795
}
807
796
}
808
-
809
- $ contents = $ writer ->getContents ();
810
- if ($ shouldProfile ) {
811
- $ uri = date ("y-m-d-h-i-s " )."- " .$ _SERVER ['SERVER_ADDR ' ]."- " .$ _SERVER ['REQUEST_URI ' ];
812
- $ uri = preg_replace ('#[^0-9a-z]+#i ' , '- ' , $ uri );
813
- $ uri = strtolower ($ uri );
814
- $ uri = trim ($ uri , '- ' );
815
- $ xhprof_data = xhprof_disable ();
816
- $ xhprof_runs = new \XHProfRuns_Default ();
817
- $ xhprof_runs ->save_run ($ xhprof_data , $ uri );
818
- }
819
- return $ contents ;
797
+ return $ writer ->getContents ();
820
798
}
821
799
822
800
/**
You can’t perform that action at this time.
0 commit comments