javacore-analyser 2.5.0.dev2__py3-none-any.whl → 2.5.0.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- javacore_analyser/javacore_analyser_batch.py +21 -0
- javacore_analyser/javacore_analyser_web.py +10 -0
- {javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/METADATA +1 -1
- {javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/RECORD +7 -7
- {javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/WHEEL +0 -0
- {javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/entry_points.txt +0 -0
- {javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/licenses/LICENSE +0 -0
@@ -146,7 +146,17 @@ def generate_javecore_set_data(files):
|
|
146
146
|
javacores_temp_dir.cleanup()
|
147
147
|
|
148
148
|
|
149
|
+
# Assisted by watsonx Code Assistant
|
149
150
|
def create_output_files_structure(output_dir):
|
151
|
+
"""
|
152
|
+
Creates the output report directory structure and copies necessary files.
|
153
|
+
|
154
|
+
Args:
|
155
|
+
output_dir (str): The output directory path.
|
156
|
+
|
157
|
+
Returns:
|
158
|
+
None
|
159
|
+
"""
|
150
160
|
if not os.path.isdir(output_dir):
|
151
161
|
os.mkdir(output_dir)
|
152
162
|
data_output_dir = os.path.normpath(os.path.join(output_dir, 'data'))
|
@@ -164,7 +174,18 @@ def create_output_files_structure(output_dir):
|
|
164
174
|
os.path.join(output_dir, "index.html"))
|
165
175
|
|
166
176
|
|
177
|
+
# Assisted by watsonx Code Assistant
|
167
178
|
def generate_error_page(output_dir, exception):
|
179
|
+
"""
|
180
|
+
Generate an error page with a stacktrace.
|
181
|
+
|
182
|
+
Args:
|
183
|
+
output_dir (str): The directory where the error page will be saved.
|
184
|
+
exception (Exception): The exception that caused the error.
|
185
|
+
|
186
|
+
Returns:
|
187
|
+
None
|
188
|
+
"""
|
168
189
|
error_page_text = importlib_resources.read_text("javacore_analyser", "data/html/error.html")
|
169
190
|
tb = traceback.format_exc()
|
170
191
|
file = os.path.join(output_dir, "index.html")
|
@@ -52,7 +52,17 @@ def dir_listing(path):
|
|
52
52
|
|
53
53
|
|
54
54
|
@app.route('/zip/<path:path>')
|
55
|
+
# Assisted by watsonx Code Assistant
|
55
56
|
def compress(path):
|
57
|
+
"""
|
58
|
+
Compress a directory and return the compressed file as an attachment.
|
59
|
+
|
60
|
+
Args:
|
61
|
+
path (str): The path to the directory to compress.
|
62
|
+
|
63
|
+
Returns:
|
64
|
+
send_from_directory: The compressed file as an attachment.
|
65
|
+
"""
|
56
66
|
temp_zip_dir = tempfile.TemporaryDirectory()
|
57
67
|
try:
|
58
68
|
temp_zip_dir_name = temp_zip_dir.name
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: javacore_analyser
|
3
|
-
Version: 2.5.0.
|
3
|
+
Version: 2.5.0.dev6
|
4
4
|
Summary: The tool to review IBM Javacore files
|
5
5
|
Project-URL: Homepage, https://github.com/IBM/javacore-analyser
|
6
6
|
Project-URL: Issues, https://github.com/IBM/javacore-analyser/issues
|
@@ -6,8 +6,8 @@ javacore_analyser/constants.py,sha256=7-gbGLzUMIMe2UvmLT17ymmy_r_izadpAyhrEKFonP
|
|
6
6
|
javacore_analyser/har_file.py,sha256=grXpfIyPek9xQ5jp3_AYOB5JDELd17o4O4rYELxWO7w,2131
|
7
7
|
javacore_analyser/java_thread.py,sha256=nDFJiFQSO78jP9YdMpBr2d_M2RMT0te_kJxn5KY_RNo,5437
|
8
8
|
javacore_analyser/javacore.py,sha256=oqJ-nKkZvq8xk_zlF9Z4dX61isqLRndSVLnQob_KUG4,7006
|
9
|
-
javacore_analyser/javacore_analyser_batch.py,sha256=
|
10
|
-
javacore_analyser/javacore_analyser_web.py,sha256=
|
9
|
+
javacore_analyser/javacore_analyser_batch.py,sha256=hLd4J_Q7JiZlkKp57KirK3_WtMaLuLC-X293a0bA8fU,8393
|
10
|
+
javacore_analyser/javacore_analyser_web.py,sha256=L3-BG5ljYllPkwHfKHL_yvG6m0cUjkDFdxpd6qsQDH8,6269
|
11
11
|
javacore_analyser/javacore_set.py,sha256=5x16j8KfA_DXD3FlvKlRHfRJ2B1rj5j2EkMfb2dV3dg,33341
|
12
12
|
javacore_analyser/logging_utils.py,sha256=vLob0ikezysjGv9XGqv9GbLekxu4eO_csq22M-gtLiQ,966
|
13
13
|
javacore_analyser/properties.py,sha256=SVxe86mL4DM_vkPEBT-V0_xDeIbXp2vjYE1aD-Z_UCQ,805
|
@@ -43,8 +43,8 @@ javacore_analyser/data/xml/javacores/javacore.xsl,sha256=puJl7CDR7FACAHbb2lTKHiw
|
|
43
43
|
javacore_analyser/data/xml/threads/thread.xml,sha256=6dG89Whx1_kpEYVS_F6Upa2XuXnXorlQATFc8kD5Mfc,280
|
44
44
|
javacore_analyser/data/xml/threads/thread.xsl,sha256=1tg5tImtr1gyZ8Q61tqIukNtm1fQ6R8YoKC3EgIjLRA,14084
|
45
45
|
javacore_analyser/templates/index.html,sha256=c40-JY3eXG9NzPVMy14VSZFj1Yq7cuUDVUg5BWa2WY0,2466
|
46
|
-
javacore_analyser-2.5.0.
|
47
|
-
javacore_analyser-2.5.0.
|
48
|
-
javacore_analyser-2.5.0.
|
49
|
-
javacore_analyser-2.5.0.
|
50
|
-
javacore_analyser-2.5.0.
|
46
|
+
javacore_analyser-2.5.0.dev6.dist-info/METADATA,sha256=CmRBtGtVsKqL-0ScTLfF4_pPTIhhH3iU20BNa_dliGE,22742
|
47
|
+
javacore_analyser-2.5.0.dev6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
48
|
+
javacore_analyser-2.5.0.dev6.dist-info/entry_points.txt,sha256=W3S799zI58g5-jWMsC3wY9xksz21LPEMYOILv8sayfM,160
|
49
|
+
javacore_analyser-2.5.0.dev6.dist-info/licenses/LICENSE,sha256=xllut76FgcGL5zbIRvuRc7aezPbvlMUTWJPsVr2Sugg,11358
|
50
|
+
javacore_analyser-2.5.0.dev6.dist-info/RECORD,,
|
File without changes
|
{javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/entry_points.txt
RENAMED
File without changes
|
{javacore_analyser-2.5.0.dev2.dist-info → javacore_analyser-2.5.0.dev6.dist-info}/licenses/LICENSE
RENAMED
File without changes
|