Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: tools/lua/agg_dash.lua

Issue 288883003: Add lua scripts to scrape dashing info (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/lua/scrape_dashing_full.lua » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 --[[
2 This file is used as the aggregator file when using telemetry for
3 scrape_dashing_full.lua
4 ]]
5
6 dashCount = 0
7 dashTable = {}
8
9 function increment_inner(table, key, value)
10 table[key] = (table[key] or 0) + value
11 end
12
13 function increment(table, tableKey, key, value)
14 if (table[tableKey] == nil) then
15 table[tableKey] = {}
16 end
17 increment_inner(table[tableKey], key, value)
18 end
19
20 dofile("/tmp/lua-output")
21
22 io.write("Total dashed effects is: ", dashCount, "\n")
23 for k1, v1 in next, dashTable do
24 io.write("\nTable: ", k1, "\n")
25 for k, v in next, v1 do
26 io.write("\"", k, "\": ", v, "\n")
27 end
28 end
29
OLDNEW
« no previous file with comments | « no previous file | tools/lua/scrape_dashing_full.lua » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698