How can I analyze a file created with pstats.dump_stats(filename) off line?

Here’s what i found out and the Python program I generated. I tested this with a .dmp file made on linux & analyzed on windows xp. It worked FINE. The Python file is named, “analyze_dmp.py”. #!/usr/local/bin/python2.7 # -*- coding: UTF-8 -*- “””analyze_dmp.py takes the file INFILEPATH [a pstats dump file] Producing OUTFILEPATH [a human readable … Read more

Where is the Query Analyzer in SQL Server Management Studio 2008 R2?

To analyze a query you already have entered into the Query editor, you need to choose “Include Actual Execution Plan” (7th toggle button to the right of the “! Execute” button). After executing the query, you need to click on the “Execution Plan” tab in the results pane at the bottom (above the results of … Read more

How to analyze information from a Java core dump? [closed]

Okay if you’ve created the core dump with gcore or gdb then you’ll need to convert it to something called a HPROF file. These can be used by VisualVM, Netbeans or Eclipse’s Memory Analyzer Tool (formerly SAP Memory Analyzer). I’d recommend Eclipse MAT. To convert the file use the commandline tool jmap. # jmap -dump:format=b,file=dump.hprof … Read more

How to log all executed elasticsearch queries

In versions of ElasticSearch prior to 5, you can accomplish this by changing the ElasticSearch.yml configuration file. At the very bottom of this file, you can adjust the logging time to record all: index.search.slowlog.threshold.query.warn: 10s index.search.slowlog.threshold.query.info: 5s index.search.slowlog.threshold.query.debug: 2s index.search.slowlog.threshold.query.trace: 500ms index.search.slowlog.threshold.fetch.warn: 1s index.search.slowlog.threshold.fetch.info: 800ms index.search.slowlog.threshold.fetch.debug: 500ms index.search.slowlog.threshold.fetch.trace: 200ms index.indexing.slowlog.threshold.index.warn: 10s index.indexing.slowlog.threshold.index.info: 5s index.indexing.slowlog.threshold.index.debug: 2s … Read more

Why is the constant always dropped from big O analysis?

There’s a distinction between “are these constants meaningful or relevant?” and “does big-O notation care about them?” The answer to that second question is “no,” while the answer to that first question is “absolutely!” Big-O notation doesn’t care about constants because big-O notation only describes the long-term growth rate of functions, rather than their absolute … Read more

What is amortized analysis of algorithms? [closed]

Amortized analysis doesn’t naively multiply the number of invocations with the worst case for one invocation. For example, for a dynamic array that doubles in size when needed, normal asymptotic analysis would only conclude that adding an item to it costs O(n), because it might need to grow and copy all elements to the new … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)