URL: https://github.com/freeipa/freeipa/pull/407 Title: #407: New lite-server implementation
tiran commented: """ Example of a single request profile with new lite-server: ``` 127.0.0.1 - - [15/Feb/2017 12:55:20] "POST /ipa/session/json HTTP/1.1" 200 - ipa: INFO: [jsonserver_session] admin@IPA.EXAMPLE: json_metadata(None, None, command=u'all', version=u'2.218'): SUCCESS -------------------------------------------------------------------------------- PATH: '/session/json' 6551240 function calls (4596653 primitive calls) in 1.869 seconds Ordered by: internal time, call count List reduced from 436 to 30 due to restriction <30> ncalls tottime percall cumtime percall filename:lineno(function) 2013370/405370 0.303 0.000 0.462 0.000 /usr/lib64/python2.7/json/encoder.py:341(_iterencode_dict) 1755304 0.278 0.000 0.278 0.000 {isinstance} 3556 0.201 0.000 0.446 0.000 /home/heimes/redhat/freeipa/ipalib/parameters.py:441(__init__) 187490/446 0.150 0.000 0.999 0.002 /home/heimes/redhat/freeipa/ipalib/util.py:58(json_serialize) 110038/1 0.127 0.000 0.236 0.236 /home/heimes/redhat/freeipa/ipalib/rpc.py:277(json_encode_binary) 3999 0.085 0.000 0.256 0.000 /home/heimes/redhat/freeipa/ipalib/parameters.py:954(__json__) 173558 0.075 0.000 0.075 0.000 {hasattr} 440062/395518 0.072 0.000 0.239 0.000 /usr/lib64/python2.7/json/encoder.py:288(_iterencode_list) 405370 0.057 0.000 0.520 0.000 /usr/lib64/python2.7/json/encoder.py:417(_iterencode) 143774/143772 0.052 0.000 0.052 0.000 /home/heimes/redhat/freeipa/ipalib/base.py:123(__setattr__) 104200 0.036 0.000 0.070 0.000 {setattr} 1 0.035 0.035 0.560 0.560 /usr/lib64/python2.7/json/encoder.py:186(encode) 1 0.029 0.029 0.029 0.029 {built-in method sasl_interactive_bind_s} 234842 0.026 0.000 0.026 0.000 {getattr} 4445/446 0.025 0.000 0.461 0.001 /home/heimes/redhat/freeipa/ipalib/util.py:62(<dictcomp>) 4449 0.024 0.000 0.032 0.000 {sorted} 234451 0.019 0.000 0.019 0.000 {method 'get' of 'dict' objects} 1 0.018 0.018 0.018 0.018 {method 'encode' of 'str' objects} 133044 0.016 0.000 0.016 0.000 {_json.encode_basestring_ascii} 24961 0.011 0.000 0.011 0.000 {_codecs.utf_8_decode} 24961 0.011 0.000 0.030 0.000 {method 'decode' of 'str' objects} 107753 0.010 0.000 0.010 0.000 /home/heimes/redhat/freeipa/ipalib/parameters.py:506(<genexpr>) 3556 0.010 0.000 0.010 0.000 /home/heimes/redhat/freeipa/ipalib/parameters.py:261(parse_param_spec) 13348 0.008 0.000 0.008 0.000 {method 'items' of 'dict' objects} 7176 0.008 0.000 0.012 0.000 /home/heimes/redhat/freeipa/ipalib/text.py:248(as_unicode) 91841 0.007 0.000 0.007 0.000 /usr/lib64/python2.7/json/encoder.py:361(<lambda>) 24961 0.007 0.000 0.018 0.000 /usr/lib64/python2.7/encodings/utf_8.py:15(decode) 1973 0.007 0.000 0.274 0.000 /home/heimes/redhat/freeipa/ipalib/parameters.py:725(clone_retype) 7388 0.006 0.000 0.006 0.000 {method 'match' of '_sre.SRE_Pattern' objects} 77523 0.006 0.000 0.006 0.000 {method 'pop' of 'dict' objects} ``` """ See the full comment at https://github.com/freeipa/freeipa/pull/407#issuecomment-279992368
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code