Skip to content

Instantly share code, notes, and snippets.

@Cameron-D
Created September 15, 2014 12:37
Show Gist options
  • Save Cameron-D/f1f652b920eb4a66c046 to your computer and use it in GitHub Desktop.
Save Cameron-D/f1f652b920eb4a66c046 to your computer and use it in GitHub Desktop.
archiveteam@archivetemp:/mnt/at/twitpic-grab$ luatrace.profile mytrace.txt
Total time 135.58 seconds
Times in seconds
Top 20 lines by total time
File:line Hits Total Self Child | Line
twitpic.lua:251 573 134.80 134.80 0.00 | local status_code = http_stat["statcode"]
twitpic.lua:255 573 0.35 0.35 0.00 | io.stdout:flush()
twitpic.lua:141 3170 0.13 0.13 0.00 | local url = urlpos["url"]["url"]
twitpic.lua:43 413 0.04 0.04 0.00 | local urls = {}
twitpic.lua:60 68 0.03 0.03 0.00 | for videourl in string.gmatch(html, '<meta name="twitter:player:stream" value="(http[^"]+)"') do
twitpic.lua:68 132 0.02 0.02 0.00 | for imageurl in string.gmatch(html, '<meta name="twitter:image" value="(http[^"]+)"') do
twitpic.lua:64 68 0.02 0.02 0.00 | for videosource in string.gmatch(html, '<source src="(http[^"]+)"') do
twitpic.lua:51 68 0.02 0.00 0.02 | html = read_file(file)
twitpic.lua:155 2289 0.02 0.02 0.00 | string.match(url, '/[^"]+"') then
twitpic.lua:26 68 0.02 0.02 0.00 | local data = f:read("*all")
twitpic.lua:154 2289 0.01 0.01 0.00 | if string.match(url, "/%%5C%%22") or
twitpic.lua:254 573 0.01 0.01 0.00 | io.stdout:write(url_count .. "=" .. status_code .. " " .. url["url"] .. ". \r")
twitpic.lua:331 1 0.01 0.01 0.00 | lt.troff()
twitpic.lua:157 1585 0.01 0.01 0.00 | elseif string.match(url, "/tag/") then
twitpic.lua:159 1584 0.01 0.01 0.00 | elseif string.match(url, "cloudfront%.net") or
twitpic.lua:160 1416 0.01 0.01 0.00 | string.match(url, "twimg%.com") or
twitpic.lua:161 1383 0.01 0.01 0.00 | string.match(url, "amazonaws%.com") then
twitpic.lua:163 1383 0.01 0.01 0.00 | elseif string.match(url, "advertise%.twitpic%.com") then
twitpic.lua:165 1319 0.01 0.01 0.00 | elseif not string.match(url, "twitpic%.com") then
twitpic.lua:146 3170 0.01 0.01 0.00 | if downloaded[url] == true then
Top 20 functions by self time
File:lines Hits Total Self Child | Line
twitpic.lua:248-328 573 135.17 135.17 0.00 | wget.callbacks.httploop_result = function(url, err, http_stat)
twitpic.lua:140-246 3170 0.25 0.25 0.00 | wget.callbacks.download_child_p = function(urlpos, parent, depth, start_url_parsed, iri, verdict, reason)
twitpic.lua:42-138 413 0.12 0.12 0.00 | wget.callbacks.get_urls = function(file, url, is_css, iri)
twitpic.lua:23-32 68 0.02 0.02 0.00 | read_file = function(file)
twitpic.lua:330-332 1 0.01 0.01 0.00 | wget.callbacks.finish = function(start_time, end_time, wall_time, numurls, total_downloaded_bytes, total_download_time)
twitpic.lua:0-0 1 0.00 0.00 0.00 | -
urlcode.lua:0-0 1 0.00 0.00 0.00 | -
JSON.lua:0-0 1 0.00 0.00 0.00 | -
JSON.lua:816-826 1 0.00 0.00 0.00 | function OBJDEF:new(args)
failure_report.lua:0-0 1 0.00 0.00 0.00 | -
table_show.lua:0-0 1 0.00 0.00 0.00 | -
/usr/share/lua/5.1/luatrace.lua:350-358 1 0.00 0.00 0.00 | -
~/twitpic-grab   master ●  luatrace.profile mytrace.txt
Total time 130.29 seconds
Times in seconds
Top 20 lines by total time
File:line Hits Total Self Child | Line
twitpic.lua:251 544 129.49 129.49 0.00 | local status_code = http_stat["statcode"]
twitpic.lua:141 3052 0.18 0.18 0.00 | local url = urlpos["url"]["url"]
twitpic.lua:43 392 0.12 0.12 0.00 | local urls = {}
twitpic.lua:255 544 0.07 0.07 0.00 | io.stdout:flush()
twitpic.lua:51 63 0.05 0.00 0.05 | html = read_file(file)
twitpic.lua:26 63 0.04 0.04 0.00 | local data = f:read("*all")
twitpic.lua:60 63 0.04 0.04 0.00 | for videourl in string.gmatch(html, '<meta name="twitter:player:stream" value="(http[^"]+)"') do
twitpic.lua:68 124 0.03 0.03 0.00 | for imageurl in string.gmatch(html, '<meta name="twitter:image" value="(http[^"]+)"') do
twitpic.lua:6 1 0.03 0.00 0.03 | local item_value = os.getenv('item_value')
urlcode.lua:7 1 0.03 0.03 0.00 | local ipairs, next, pairs, tonumber, type = ipairs, next, pairs, tonumber, type
twitpic.lua:155 2204 0.02 0.02 0.00 | string.match(url, '/[^"]+"') then
twitpic.lua:64 63 0.02 0.02 0.00 | for videosource in string.gmatch(html, '<source src="(http[^"]+)"') do
twitpic.lua:154 2205 0.02 0.02 0.00 | if string.match(url, "/%%5C%%22") or
twitpic.lua:254 544 0.02 0.02 0.00 | io.stdout:write(url_count .. "=" .. status_code .. " " .. url["url"] .. ". \r")
twitpic.lua:159 1533 0.02 0.02 0.00 | elseif string.match(url, "cloudfront%.net") or
twitpic.lua:9 1 0.01 0.01 0.00 | dofile("failure_report.lua")
twitpic.lua:157 1533 0.01 0.01 0.00 | elseif string.match(url, "/tag/") then
twitpic.lua:160 1367 0.01 0.01 0.00 | string.match(url, "twimg%.com") or
twitpic.lua:10 1 0.01 0.01 0.00 | JSON = (loadfile "JSON.lua")()
twitpic.lua:165 1271 0.01 0.01 0.00 | elseif not string.match(url, "twitpic%.com") then
Top 20 functions by self time
File:lines Hits Total Self Child | Line
twitpic.lua:248-328 544 129.60 129.60 0.00 | wget.callbacks.httploop_result = function(url, err, http_stat)
twitpic.lua:140-246 3052 0.36 0.36 0.00 | wget.callbacks.download_child_p = function(urlpos, parent, depth, start_url_parsed, iri, verdict, reason)
twitpic.lua:42-138 392 0.21 0.21 0.00 | wget.callbacks.get_urls = function(file, url, is_css, iri)
twitpic.lua:23-32 63 0.05 0.05 0.00 | read_file = function(file)
twitpic.lua:0-0 1 0.04 0.04 0.00 | -
urlcode.lua:0-0 1 0.03 0.03 0.00 | -
JSON.lua:0-0 1 0.00 0.00 0.00 | -
failure_report.lua:0-0 1 0.00 0.00 0.00 | -
JSON.lua:816-826 1 0.00 0.00 0.00 | function OBJDEF:new(args)
table_show.lua:0-0 1 0.00 0.00 0.00 | -
@tattoo4375
Copy link

/storage/emulated/0/.archivetemp/.archivetemparchivetemp.txt.

@tattoo4375
Copy link

/storage/emulated/0/.archivetemp/.archivetemparchivetemp.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment