Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

profiler - Increasing the depth of cProfiler in Python to report more functions? -


i'm trying profile function calls other functions. call profiler follows:

from mymodule import foo def start():    # ...    foo()  import cprofile profile profile.run('start()', output_file) p = pstats.stats(output_file) print "name: " print p.sort_stats('name') print "all stats: " p.print_stats() print "cumulative (top 10): " p.sort_stats('cumulative').print_stats(10) 

i find profiler says time spend in function "foo()" of mymodule, instead of brekaing down subfunctions foo() calls, want see. how can make profiler report performance of these functions?

thanks.

you need p.print_callees() hierarchical breakdown of method calls. output quite self explanatory: on left column can find function of interest e.g.foo(), going right side column shows called sub-functions , scoped total , cumulative times. breakdowns these sub-calls included etc.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -