advuni / picdat Goto Github PK
View Code? Open in Web Editor NEWparser/viewer for perfstat files
License: GNU General Public License v3.0
parser/viewer for perfstat files
License: GNU General Public License v3.0
In every CSV you get a unnecessary blank line, which is caused by having a double carriage return followed by a line feed.
I've tracked the bug down to line 47 of the function create_csv in the file picdat/table_writer.py.
"os.linesep" is not allowed as line terminator, when you open the file in text mode.
Source: docs.python.org
File "C:\Users\victor\Documents\picdat\picdat-master\picdat_util.py", line 184, in handle_user_input
['help', 'logfile', 'sortbynames', 'compact', 'webserver', 'debug=', 'input=', 'outputdir='])
File "C:\Python34\lib\getopt.py", line 93, in getopt
opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
File "C:\Python34\lib\getopt.py", line 157, in do_longs
has_arg, opt = long_has_args(opt, longopts)
File "C:\Python34\lib\getopt.py", line 174, in long_has_args
raise GetoptError(_('option --%s not recognized') % opt, opt)
getopt.GetoptError: option --inputfile not recognized
2019-11-17 12:14:48,466 INFO: inputfile: C:\Users\victor\Documents\picdat\NetApp01_14_11_perf.zip, outputdir: C:\Users\victor\Documents\picdat\Perf_Out1
2019-11-17 12:14:48,484 INFO: Extract zip...
2019-11-17 12:15:21,375 INFO: Prepare directory...
2019-11-17 12:15:22,093 INFO: Running PicDat in PerfStat mode
2019-11-17 12:15:22,093 INFO: Did not find a console.log file to extract perfstat's cluster and node name.
2019-11-17 12:15:22,107 INFO: Read data...
2019-11-17 12:18:32,542 INFO: (Temporarily extracted files deleted)
Traceback (most recent call last):
File "C:\Users\victor\Documents\picdat\picdat-master\picdat.py", line 181, in
start_picdat()
File "C:\Users\victor\Documents\picdat\picdat-master\picdat.py", line 139, in start_picdat
sort_columns_by_name, compact_file)
File "C:\Users\victor\Documents\picdat\picdat-master\perfstat_mode\perfstat_mode.py", line 98, in run_perfstat_mode
sort_columns_by_name)
File "C:\Users\victor\Documents\picdat\picdat-master\perfstat_mode\data_collector.py", line 193, in read_data_file
sysstat_container.process_sysstat_block(line)
File "C:\Users\victor\Documents\picdat\picdat-master\perfstat_mode\sysstat_container.py", line 279, in process_sysstat_block
self.process_sysstat_keys(line)
File "C:\Users\victor\Documents\picdat\picdat-master\perfstat_mode\sysstat_container.py", line 189, in process_sysstat_keys
'%') for index in self.percent_indices])
File "C:\Users\victor\Documents\picdat\picdat-master\perfstat_mode\sysstat_container.py", line 189, in
'%') for index in self.percent_indices])
IndexError: list index out of range
Blocked because of default security settings in these browsers.
Test: chrome --disable-web-security --user-data-dir &
works
How to reproduce:
Analyse any 7-Mode perfstat output with picdat.
Possible cause:
SYSSTAT_BLOCK_HEADER = 'sysstat_x_1sec' in sysstat_module.py
Example line for cdot:
=-=-=-=-=-= PERF 10.252.0.26 POSTSTATS =-=-=-=-=-= sysstat_x_1sec
Example line for 7-mode:
=-=-=-=-=-= PERF filer11 POSTSTATS =-=-=-=-=-= sysstat_1sec.out
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.