profiler

Profiled app with YourKit, still can't identify the CPU hog

帅比萌擦擦* 提交于 2019-11-28 04:58:37
问题 I've got a Java application that is consuming 100% of the CPU most of the time (as indicated by cacti and top monitoring). We fired up YourKit (which confirms the CPU resource issue) and it identifies java.net.SocketInputStream.read(byte[], int, int) as the biggest hot spot at 15% of time. I believe they aren't accurately measuring CPU time for methods that perform blocking IO like SocketInputStream.read would. There are 6 other identified hot spots, but they account for less than 20% of

Log table access using SQL Server Profiler

本小妞迷上赌 提交于 2019-11-28 04:07:39
问题 Is there a way to use Profiler to determine whether a table is being accessed by queries? I saw an event named Object:Opened (Indicates when an object has been accessed, such as for SELECT, INSERT, or DELETE statements) and Object:Closed , but these do not seem to work. In particular, I created a simple trace with both Object:Opened and Object:Closed with no filters (except the standard "Application Name not like 'SQL Profiler'" filter) and ran SELECT TOP 1 * FROM TableName , but no events

Get time of execution of a block of code in Python 2.7

℡╲_俬逩灬. 提交于 2019-11-28 02:51:36
I would like to measure the time elapsed to evaluate a block of code in a Python program, possibly separating between user cpu time, system cpu time and elapsed time. I know the timeit module, but I have many self-written functions and it is not very easy to pass them in the setup process. I would rather have something that could be used like: #up to here I have done something.... start_counting() #or whatever command used to mark that I want to measure #the time elapsed in the next rows # code I want to evaluate user,system,elapsed = stop_counting() #or whatever command says: #stop the timer

Profiler for Sql CE

江枫思渺然 提交于 2019-11-27 23:32:56
i wonder if there is something similar to Sql Profiler for Sql Server Compact Edition? i use SqlCE as backend for a desktop application and it would be really great to have something like sql profiler for this embedded database. or at least something simliar to the NHibernate show_sql feature... any ideas? thanks j. Sam Saffron The only tested solution I know of that could solve this problem is Altiris Profiler which is a tool I designed at my previous job, but is closed source and not-for-sale. The way you would hook it in, is by creating a factory for your commands and proxing them for

Modify Codeigniter profiler to send output to db instead of display on page

£可爱£侵袭症+ 提交于 2019-11-27 22:39:40
问题 I'd like to use CI profiler as a tool to audit an app. However, obviously in this case, I do not want the output to be displayed on the page, but rather be logged to the db. I was thinking I could hook into profiler grab the relevant details (query, uri_string, etc.) and send that to a table in the db. I could extend the profiler class to send data to the db, but this doesn't eliminate the output to the screen. I'd like to be able to use the profiler normally as well from time to time, so re

profiling a method of a class in Python using cProfile?

拜拜、爱过 提交于 2019-11-27 21:06:28
问题 I'd like to profile a method of a function in Python, using cProfile. I tried the following: import cProfile as profile # Inside the class method... profile.run("self.myMethod()", "output_file") But it does not work. How can I call a self.method with "run"? 回答1: Use the profilehooks decorator http://pypi.python.org/pypi/profilehooks 回答2: EDIT: Sorry, didn't realise that the profile call was in a class method. run just tries to exec the string you pass it. If self isn't bound to anything in

MiniProfiler not showing up on asp.net MVC

折月煮酒 提交于 2019-11-27 20:41:36
问题 I added this to my Global.asax.cs: protected void Application_BeginRequest() { if (Request.IsLocal) { MiniProfiler.Start(); } } protected void Application_EndRequest() { MiniProfiler.Stop(); } I added @MiniProfiler.RenderIncludes() just below the </body> tag in _Layout.cshtml. In my controller I'm using: public class HomeController : Controller { public ActionResult Index() { var profiler = MiniProfiler.Current; // it's ok if this is null using (profiler.Step("Set page title")) { ViewBag

Is it possible to monitor and log actual queries made against an Access MDB?

强颜欢笑 提交于 2019-11-27 20:10:17
Is it possible to monitor what is happening to an Access MDB (ie. what SQL queries are being executed against it), in the same way as you would use SQL Profiler for the SQL Server? I need logs of actual queries being called. Oleg The answer depend on the technology used from the client which use MDB. There are different tracing settings which you can configure in HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines\ODBC http://office.microsoft.com/en-us/access/HP010321641033.aspx . If you use OLEDB to access MDB from SQL Server you can use DBCC TRACEON (see http://msdn.microsoft.com/en-us

Recommendations for C Profilers?

南楼画角 提交于 2019-11-27 18:21:29
Everyone always says to profile your program before performing optimizations but no-one ever describes how to do so. What are your practices for profiling C code? Alex Martelli Using gcc , I compile and link with -pg (as explained e.g. here ), then continue by running the program (according to the principles also suggested at that URL) and using gprof . The tools will vary if you're using different compilers &c, but the URL is still recommended, even then, for the parts that are about general ideas on how and why to profile your code. If you are using Linux, then I recommend the combination of

Web Profiler not showing up in dev

前提是你 提交于 2019-11-27 18:02:45
问题 Im using Symfony2 (const version="2.5.10") and using xampp with PHP version 5.5.19. I got a problem that in my dev environment the profiler didn't show up.What could be the problem? config.yml imports: - { resource: parameters.yml } - { resource: security.yml } framework: #esi: ~ #translator: { fallback: "%locale%" } translator: ~ secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true