b3b0cfc4d4
BUG=skia: R=reed@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/288883003 git-svn-id: http://skia.googlecode.com/svn/trunk@14754 2bbb7eff-a529-9590-31e7-b0007b416f81
30 lines
641 B
Lua
Executable File
30 lines
641 B
Lua
Executable File
--[[
|
|
This file is used as the aggregator file when using telemetry for
|
|
scrape_dashing_full.lua
|
|
]]
|
|
|
|
dashCount = 0
|
|
dashTable = {}
|
|
|
|
function increment_inner(table, key, value)
|
|
table[key] = (table[key] or 0) + value
|
|
end
|
|
|
|
function increment(table, tableKey, key, value)
|
|
if (table[tableKey] == nil) then
|
|
table[tableKey] = {}
|
|
end
|
|
increment_inner(table[tableKey], key, value)
|
|
end
|
|
|
|
dofile("/tmp/lua-output")
|
|
|
|
io.write("Total dashed effects is: ", dashCount, "\n")
|
|
for k1, v1 in next, dashTable do
|
|
io.write("\nTable: ", k1, "\n")
|
|
for k, v in next, v1 do
|
|
io.write("\"", k, "\": ", v, "\n")
|
|
end
|
|
end
|
|
|