From 15a57abc6a2800395adfa9178df0b40c4394b3dd Mon Sep 17 00:00:00 2001 From: EryneKL <97091460+EryneKL@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:57:59 +0100 Subject: [PATCH] =?UTF-8?q?FEAT=20:=20CDE-277-Mesurer-et-noter-les-perform?= =?UTF-8?q?ances-sur-plusieurs-fichiers=20:=20=20=20=20=20=20-=20ajout=20d?= =?UTF-8?q?e=20d=C3=A9tails=20sur=20les=20log.debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fr/abes/bestppn/utils/ExecutionTimeAspect.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/fr/abes/bestppn/utils/ExecutionTimeAspect.java b/src/main/java/fr/abes/bestppn/utils/ExecutionTimeAspect.java index 643c7b2..657b7c0 100644 --- a/src/main/java/fr/abes/bestppn/utils/ExecutionTimeAspect.java +++ b/src/main/java/fr/abes/bestppn/utils/ExecutionTimeAspect.java @@ -5,6 +5,8 @@ import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; +import java.util.Arrays; + @Aspect @Slf4j public class ExecutionTimeAspect { @@ -18,7 +20,13 @@ public Object measureExecutionTime(ProceedingJoinPoint joinPoint) throws Throwab long endTime = System.currentTimeMillis(); double executionTime = (endTime - startTime) / 1000; + log.debug("------------------------------------------------------"); + log.debug("Classe : " + joinPoint.getSignature().getDeclaringTypeName()); + log.debug("Méthode : " + joinPoint.getSignature().getName()); + log.debug("Paramètres : " + Arrays.toString(joinPoint.getArgs())); log.debug("Temps d'exécution : " + executionTime + " secondes"); + log.debug("------------------------------------------------------"); + return result; } }