]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
Merge pull request #2946 from annando/1611-bugfix-groups
[friendica.git] / include / api.php
index 350c6dd07c0386d27cb6477a3ab038e40368cf92..123a4b9cfe8b425e5e450b746684e4364f10df8a 100644 (file)
                                        logger("API call duration: ".round($duration, 2)."\t".$a->query_string, LOGGER_DEBUG);
 
                                        if (get_config("system", "profiler")) {
-                                               logger(sprintf("Database: %s/%s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s",
+                                               $duration = microtime(true)-$a->performance["start"];
+
+                                               logger(parse_url($a->query_string, PHP_URL_PATH).": ".sprintf("Database: %s/%s, Network: %s, I/O: %s, Other: %s, Total: %s",
                                                        round($a->performance["database"] - $a->performance["database_write"], 3),
                                                        round($a->performance["database_write"], 3),
                                                        round($a->performance["network"], 2),
-                                                       round($a->performance["rendering"], 2),
-                                                       round($a->performance["parser"], 2),
                                                        round($a->performance["file"], 2),
-                                                       round($duration - $a->performance["database"]
-                                                                - $a->performance["network"] - $a->performance["rendering"]
-                                                                - $a->performance["parser"] - $a->performance["file"], 2),
+                                                       round($duration - ($a->performance["database"] + $a->performance["network"]
+                                                               + $a->performance["file"]), 2),
                                                        round($duration, 2)),
                                                        LOGGER_DEBUG);