diff options
| author | bd <bdunahu@operationnull.com> | 2025-07-19 23:45:36 -0600 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-07-19 23:45:36 -0600 |
| commit | 2e208349d2e6f8f3d7fbbe853413549da9df0ce0 (patch) | |
| tree | 2a2b181cdc6125ba26bb91e07454fdf5e01160a4 /aergia | |
| parent | 0c0af7dd5a9d1c30820b52f8209151f0f2d5610d (diff) | |
Relicensed as Apache2.0
Diffstat (limited to 'aergia')
| -rwxr-xr-x | aergia/aergia.py | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/aergia/aergia.py b/aergia/aergia.py index ad283e0..d8f18ec 100755 --- a/aergia/aergia.py +++ b/aergia/aergia.py @@ -7,22 +7,20 @@ _/ _/ _/_/_/ _/ _/_/_/ _/ _/_/_/ _/ _/_/ -Copyright: - This program is free software: you can redistribute it - and/or modify it under the terms of the GNU General - Public License as published by the Free Software - Foundation, either version 3 of the License, or (at your - option) any later version. +Copyright 2025 bdunahu - This program is distributed in the hope that it will be - useful, but WITHOUT ANY WARRANTY; without even the implied - warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the GNU General Public License for more details. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - You should have received a copy of the GNU General Public - License along with this program. If not, see - <https://www.gnu.org/licenses/>. + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. Commentary: @@ -175,7 +173,7 @@ class Aergia(object): @staticmethod def get_event_loops(): - '''Obtains each thread's event loop.''' + '''Returns each thread's event loop, if it exists.''' loops = [] for t in threading.enumerate(): frame = sys._current_frames().get(t.ident) @@ -218,6 +216,7 @@ class Aergia(object): filename = co.co_filename return Sample(filename, line_no, func_name) + @staticmethod def tuple_to_string(sample): '''Given a namedtuple corresponding to a sample key, pretty-prints a frame as a function/file name and a line number.''' @@ -265,8 +264,8 @@ class Aergia(object): @staticmethod def should_trace(filename): - '''Returns FALSE if filename is uninteresting to the user.''' - # print(filename) + '''Returns FALSE if filename is uninteresting to the user. + Don't depend on this.''' # FIXME Assume GuixSD. Makes filtering easy if '/gnu/store' in filename: return False |
