5> eprof:total_analyse(). FUNCTION CALLS TIME mochijson2:tokenize_string_fast/2 440858 14 % erlang:setelement/3 244500 7 % couch_key_tree:map_simple/3 81222 7 % mochijson2:tokenize/2 95704 7 % couch_key_tree:get_all_leafs_simple/3 79808 7 % mochijson2:decode_array/3 44022 6 % mochijson2:decode_object/3 25520 5 % mochijson2:tokenize_string/2 35409 4 % mochijson2:json_bin_is_safe/1 108836 3 % erlang:port_command/2 5701 2 % mochijson2:decode1/2 13081 1 % erlang:'++'/2 43644 1 % couch_key_tree:'-map/2-fun-0-'/4 40406 1 % couch_db_updater:'-rev_tree/1-fun-0-'/2 40302 1 % lists:splitwith/3 15640 1 % lists:reverse/1 20213 1 % couch_btree:less/3 29892 1 % couch_view_group:'-init_group/4-fun-1-'/2 29475 1 % couch_util:to_hex/1 5777 1 % couch_btree:'-query_modify/4-fun-1-'/3 20359 1 % proplists:lookup/2 20800 1 % mochijson2:decode_array/2 8294 1 % gen:do_call/4 5354 1 % lists:map/2 5325 1 % lists:reverse/2 18411 1 % lists:foldl/3 10377 1 % couch_stats_aggregator:'-handle_call/3-fun-3- 3240 1 %