Skip to content

Commit

Permalink
Adds tracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbyttow committed Jan 29, 2018
1 parent 3c5a4d8 commit 11f2c10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions govips.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,15 @@ func ShutdownThread() {
type VipsMemoryStats struct {
Mem int64
MemHigh int64
Files int64
Allocs int64
}

func ReadVipsMemStats(stats *VipsMemoryStats) {
stats.Mem = int64(C.vips_tracked_get_mem())
stats.MemHigh = int64(C.vips_tracked_get_mem_highwater())
stats.Allocs = int64(C.vips_tracked_get_allocs())
stats.Files = int64(C.vips_tracked_get_files())
}

func VipsClearCache() {
Expand Down

0 comments on commit 11f2c10

Please sign in to comment.