// ElapsedMemory 内存占用
178367
func ElapsedMemory() (ret string) {
	memStat := new(runtime.MemStats)
	runtime.ReadMemStats(memStat)
	ret = FormatByte(memStat.Alloc, 3)
	return
}
1138402
func (p *Playlist) InMemory() bool {
	return C.sp_playlist_is_in_ram(p.session.sp_session, p.sp_playlist) == 1
}
785575
func (_class VMClass) ComputeMemoryOverhead(sessionID SessionRef, vm VMRef) (_retval int, _err error) {
	_method := "VM.compute_memory_overhead"
	_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
	if _err != nil {
		return
	}
	_vmArg, _err := convertVMRefToXen(fmt.Sprintf("%s(%s)", _method, "vm"), vm)
	if _err != nil {
		return
	}
	_result, _err := _class.client.APICall(_method, _sessionIDArg, _vmArg)
	if _err != nil {
		return
	}
	_retval, _err = convertIntToGo(_method + " -> ", _result.Value)
	return
}
1319210
func NewMemoryProfile(m string) (MemoryProfile, error) {
	mp := MemoryProfile(m)
	if err := mp.Validate(); err != nil {
		return MemoryProfile(""), err
	}
	return mp, nil
}
868759
func (p *propPrivateHostPlan) GetMemoryMB() int {
	if p.Plan == nil {
		return -1
	}

	return p.Plan.GetMemoryMB()
}
1216734
func ParseMemory(s string) (Memory, error) {
	i, err := parseMemory(s)
	return Memory(i), err
}
49076
func Cached(d string) {
	if r, ok := relationalModelDefinition(false); ok {
		r.Cached = true
		dur, err := strconv.Atoi(d)
		if err != nil {
			dslengine.ReportError("Duration %s couldn't be parsed as integer", d)
		}
		r.CacheDuration = dur
	}
}
1245440
func MemUsed() (uint64, error) {
	v, err := mem.VirtualMemory()
	return v.Total - (v.Free + v.Buffers + v.Cached), err
}
988435
func NewInMemory(r *NetIDRange) *Allocator {
	return New(r, func(max int, rangeSpec string) allocator.Interface {
		return allocator.NewAllocationMap(max, rangeSpec)
	})
}
666372
func NewMemory(policies Policies, namespace string) Cache {
	return &memory{
		policies: policies,
		h:        isolated.GetHash(namespace),
		data:     map[isolated.HexDigest][]byte{},
		lru:      makeLRUDict(namespace),
	}
}
1175113
func (s *Task) SetMemory(v string) *Task {
	s.Memory = &v
	return s
}
1061318
func (surface *SurfaceObserver) Elapsed() float64 {
	ret := float64(C.cairo_surface_observer_elapsed(surface.Ptr))
	if err := surface.status(); err != nil {
		panic(err)
	}
	return ret
}
869718
func (s *Stopwatch) ElapsedSeconds() float64 {
	s.RLock()
	defer s.RUnlock()

	return s.Elapsed().Seconds()
}
1315147
func NewScheduler() *InMemory {
	return &InMemory{
		addCh:   make(chan *Entry),
		stopCh:  make(chan struct{}),
		entries: nil,
	}
}
569013
func (this *DatabaseProfilerMemory) Flush() {
	this.Lock()
	count := len(this.Log)
	for _, line := range this.Log[:count] {
		fmt.Println(line)
	}
	this.Log = this.Log[count:]
	this.Unlock()
}
440612
func (s *Device) SetMemory(v int64) *Device {
	s.Memory = &v
	return s
}
275264
func (s *ContainerDefinition) SetMemory(v int64) *ContainerDefinition {
	s.Memory = &v
	return s
}