mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	增加对任务的执行时间追踪工具
This commit is contained in:
		@@ -6,6 +6,7 @@ import (
 | 
			
		||||
	"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeNode/internal/events"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
 | 
			
		||||
	"github.com/TeaOSLab/EdgeNode/internal/trackers"
 | 
			
		||||
	"github.com/iwind/TeaGo/Tea"
 | 
			
		||||
	"sync"
 | 
			
		||||
	"time"
 | 
			
		||||
@@ -60,6 +61,9 @@ func (this *OriginStateManager) Loop() error {
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var tr = trackers.Begin("CHECK_ORIGIN_STATES")
 | 
			
		||||
	defer tr.End()
 | 
			
		||||
 | 
			
		||||
	var currentStates = []*OriginState{}
 | 
			
		||||
	this.locker.Lock()
 | 
			
		||||
	for originId, state := range this.stateMap {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user