Merge pull request #5908 from systemed/debug_way
Profile debug script which fetches a way from OSM
This commit is contained in:
@@ -52,7 +52,7 @@ end
|
||||
function canonicalizeStringList(str)
|
||||
return str
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
-- debug helper
|
||||
@@ -123,11 +123,14 @@ function Debug.process_way(way,result)
|
||||
result.forward_classes = {}
|
||||
result.backward_classes = {}
|
||||
|
||||
-- intercept tag function normally provided via C++
|
||||
-- intercept tag functions normally provided via C++
|
||||
function way:get_value_by_key(k)
|
||||
Debug.register_tag_fetch(k)
|
||||
return self[k]
|
||||
end
|
||||
function way:get_location_tag(k)
|
||||
return nil
|
||||
end
|
||||
|
||||
-- reset tag counts
|
||||
Debug:reset_tag_fetch_counts()
|
||||
|
||||
Reference in New Issue
Block a user