intial commit
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# glassbox - live python execution profiler and visualizer
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# app.py
|
||||
|
||||
import os
|
||||
|
||||
|
||||
+3
-2
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# glassbox - live python execution profiler engine
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# profiler.py
|
||||
|
||||
import asyncio
|
||||
import builtins
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/algorithms/__init__.py
|
||||
# algorithms package
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/algorithms/recursion.py
|
||||
# deep and non primitive recursion - the cpu-bound / tall-call-stack part of the workload
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/algorithms/sorting.py
|
||||
# sorting algorithms with deliberately different complexity classes
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/analysis/__init__.py
|
||||
# analysis package
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/analysis/indexer.py
|
||||
# inverted index over the fetched documents - the largest retained structure
|
||||
|
||||
from analysis.text import tokenize
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/analysis/report.py
|
||||
# aggregation and human readable reporting across every log level
|
||||
|
||||
import logging
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/analysis/similarity.py
|
||||
# cosine similarity between document word-frequency vectors - a deep helper call chain
|
||||
|
||||
def cosine(a: dict, b: dict) -> float:
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/analysis/text.py
|
||||
# tokenisation and word/phrase statistics over the fetched text
|
||||
|
||||
import re
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/config.py
|
||||
# sample_project - workload configuration and the shared seeded rng
|
||||
|
||||
import random
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/core/__init__.py
|
||||
# core package
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/core/metrics.py
|
||||
# small statistics helpers used by the reporting stage
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/core/pipeline.py
|
||||
# stage timing context manager used to structure and instrument the pipeline
|
||||
|
||||
import logging
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/main.py
|
||||
# sample_project - an async data pipeline that fetches real data (wikipedia + github),
|
||||
# then indexes and analyses it. built to exercise every glassbox view at once:
|
||||
# async event loop -> the blocking panel (a coroutine that stalls the loop)
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/net/__init__.py
|
||||
# net package
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/net/github.py
|
||||
# recently updated github repositories via the public search api
|
||||
|
||||
import logging
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/net/http.py
|
||||
# minimal http client over urllib - no third party dependencies, network time shows up as wait
|
||||
|
||||
import json
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
|
||||
# sample_project/net/wikipedia.py
|
||||
# wikipedia article intro fetching via the mediawiki extracts api (fuller text than the summary)
|
||||
|
||||
import logging
|
||||
|
||||
Reference in New Issue
Block a user