-
Notifications
You must be signed in to change notification settings - Fork 40
profiler
pengzhang edited this page Sep 4, 2017
·
2 revisions
All profilers in Guagua are implemented as interceptors.
Memory profiler is installed as system interceptor by default which is used to print memory consumption before and after each iteration.
#!java
ml.shifu.guagua.worker.MemoryStatsWorkerInterceptor
ml.shifu.guagua.master.MemoryStatsMasterInterceptor
Timer is installed as system interceptor by default which is used to print time consumption for each iteration and whole application.
#!java
ml.shifu.guagua.worker.WorkerTimer
ml.shifu.guagua.master.MasterTimer
Tracer is not installed as default which is used to print context for each iteration with debugging level. To enable it in master:
#!java
-Dguagua.master.system.intercepters=ml.shifu.guagua.master.MasterTimer,ml.shifu.guagua.master.MemoryStatsMasterInterceptor,ml.shifu.guagua.master.SyncMasterCoordinator,ml.shifu.guagua.master.TraceMasterInterceptor
To enable it in worker:
#!java
-Dguagua.worker.system.intercepters=ml.shifu.guagua.worker.WorkerTimer,ml.shifu.guagua.worker.MemoryStatsWorkerInterceptor,ml.shifu.guagua.worker.SyncWorkerCoordinator,ml.shifu.guagua.worker.TraceWorkerInterceptor