download: added debug logs/stats for http requests (DebugUtil.NETWORK_PROFILE_REQUESTS)

This commit is contained in:
Oleg Agafonov 2024-08-01 11:23:54 +04:00
parent f2d3850250
commit b5527a28db
3 changed files with 47 additions and 0 deletions

View file

@ -53,6 +53,10 @@ public class DebugUtil {
// - open *.sql file for all sql-queries and exec stats
public static boolean DATABASE_PROFILE_SQL_QUERIES_TO_FILE = false;
// network
public static boolean NETWORK_PROFILE_REQUESTS = false; // collect diff time between requests, http status and url into special log file
public static String NETWORK_PROFILE_REQUESTS_DUMP_FILE_NAME = "httpRequests.log";
public static String getMethodNameWithSource(final int depth) {
return TraceHelper.getMethodNameWithSource(depth);
}