kdanylov aka koder | 3a9e5db | 2017-05-09 20:00:44 +0300 | [diff] [blame] | 1 | # ---------------- PROFILES ------------------------------------------------------------------------------------------ |
| 2 | |
| 3 | |
| 4 | # this is default values, real values is loaded from config |
| 5 | class ColorProfile: |
| 6 | primary_color = 'b' |
| 7 | suppl_color1 = 'teal' |
| 8 | suppl_color2 = 'magenta' |
| 9 | suppl_color3 = 'orange' |
| 10 | box_color = 'y' |
| 11 | err_color = 'red' |
| 12 | |
| 13 | noise_alpha = 0.3 |
| 14 | subinfo_alpha = 0.7 |
| 15 | |
| 16 | imshow_colormap = None # type: str |
| 17 | hmap_cmap = "Blues" |
| 18 | |
| 19 | |
| 20 | default_format = 'svg' |
| 21 | io_chart_format = 'svg' |
| 22 | |
| 23 | |
| 24 | class StyleProfile: |
| 25 | default_style = 'seaborn-white' |
| 26 | io_chart_style = 'classic' |
| 27 | |
| 28 | dpi = 80 |
| 29 | |
| 30 | lat_samples = 5 |
| 31 | |
| 32 | tide_layout = False |
| 33 | hist_boxes = 10 |
| 34 | hist_lat_boxes = 25 |
| 35 | hm_hist_bins_count = 25 |
| 36 | hm_x_slots = 25 |
| 37 | min_points_for_dev = 5 |
| 38 | |
| 39 | x_label_rotation = 35 |
| 40 | |
| 41 | dev_range_x = 2.0 |
| 42 | dev_perc = 95 |
| 43 | |
| 44 | point_shape = 'o' |
| 45 | err_point_shape = '*' |
| 46 | |
| 47 | avg_range = 20 |
| 48 | approx_average = True |
| 49 | approx_average_no_points = False |
| 50 | |
| 51 | curve_approx_level = 6 |
| 52 | curve_approx_points = 100 |
| 53 | assert avg_range >= min_points_for_dev |
| 54 | |
| 55 | # figure size in inches |
| 56 | figsize = (8, 4) |
| 57 | figsize_long = (8, 4) |
| 58 | qd_chart_inches = (16, 9) |
| 59 | |
| 60 | subplot_adjust_r = 0.75 |
| 61 | subplot_adjust_r_no_legend = 0.9 |
| 62 | title_font_size = 12 |
| 63 | |
| 64 | extra_io_spine = True |
| 65 | |
| 66 | legend_for_eng = True |
| 67 | |
| 68 | # heatmap interpolation is deprecated |
| 69 | # heatmap_interpolation = '1d' |
| 70 | # heatmap_interpolation = None |
| 71 | # heatmap_interpolation_points = 300 |
| 72 | |
| 73 | heatmap_colorbar = False |
| 74 | outliers_q_nd = 3.0 |
| 75 | outliers_hide_q_nd = 4.0 |
| 76 | outliers_lat = (0.01, 0.9) |
| 77 | |
| 78 | violin_instead_of_box = True |
| 79 | violin_point_count = 30000 |
| 80 | |
| 81 | min_iops_vs_qd_jobs = 3 |
| 82 | |
| 83 | qd_bins = [0, 1, 2, 4, 6, 8, 12, 16, 20, 26, 32, 40, 48, 56, 64, 96, 128] |
| 84 | iotime_bins = list(range(0, 1030, 50)) |
| 85 | block_size_bins = [0, 2, 4, 8, 16, 32, 48, 64, 96, 128, 192, 256, 384, 512, 1024, 2048] |
| 86 | large_blocks = 256 |
| 87 | |
| 88 | min_load_diff = 0.05 |
| 89 | |
| 90 | histo_grid = 'x' |
| 91 | |
| 92 | |
| 93 | DefColorProfile = ColorProfile() |
| 94 | DefStyleProfile = StyleProfile() |