github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libdokan/metrics_file.go (about)

     1  // Copyright 2016 Keybase Inc. All rights reserved.
     2  // Use of this source code is governed by a BSD
     3  // license that can be found in the LICENSE file.
     4  
     5  package libdokan
     6  
     7  import (
     8  	"github.com/keybase/client/go/kbfs/libfs"
     9  )
    10  
    11  // NewMetricsFile returns a special read file that contains a text
    12  // representation of all metrics.
    13  func NewMetricsFile(fs *FS) *SpecialReadFile {
    14  	return &SpecialReadFile{read: libfs.GetEncodedMetrics(fs.config), fs: fs}
    15  }