MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / LogData

Method LogData

pkg/controller/rtctrl/logstore.go:333–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331}
332
333func (s *kunLogStatStore) LogData() string {
334 logbuf := s.logbuf
335 if logbuf == nil {
336 logs.V(4).Warnf("readlog %s after closed", s.String())
337 return ""
338 }
339 data := logbuf.String()
340 logbuf.Reset()
341 logBufPool.Put(logbuf)
342 s.logbuf = nil
343 return data
344}
345
346func (s *kunLogStatStore) MemUsed() int64 {
347 return s.maxMem

Callers 1

CloseMethod · 0.95

Calls 6

StringMethod · 0.95
VFunction · 0.92
WarnfMethod · 0.80
StringMethod · 0.65
PutMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected