view etc/check-memory.lua @ 4:f0a27ccb1193 tip

Added ignore file
author Eric Wing <ewing . public |-at-| gmail . com>
date Sat, 30 Aug 2008 08:46:39 -0700
parents 4b915342e2a8
children
line wrap: on
line source

function load(s)
    collectgarbage()
    local a = gcinfo()
    _G[s] = require(s)
    collectgarbage()
    local b = gcinfo()
    print(s .. ":\t " .. (b-a) .. "k")
end

load("socket.url")
load("ltn12")
load("socket")
load("mime")
load("socket.tp")
load("socket.smtp")
load("socket.http")
load("socket.ftp")