Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
afa44a80
Commit
afa44a80
authored
Jun 27, 2011
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update profile license (closes #12417)
parent
40d9ebe0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
49 deletions
+32
-49
Lib/profile.py
Lib/profile.py
+15
-24
Lib/pstats.py
Lib/pstats.py
+17
-25
No files found.
Lib/profile.py
View file @
afa44a80
...
@@ -2,35 +2,26 @@
...
@@ -2,35 +2,26 @@
#
#
# Class for profiling python code. rev 1.0 6/2/94
# Class for profiling python code. rev 1.0 6/2/94
#
#
# Written by James Roskind
# Based on prior profile module by Sjoerd Mullender...
# Based on prior profile module by Sjoerd Mullender...
# which was hacked somewhat by: Guido van Rossum
# which was hacked somewhat by: Guido van Rossum
"""Class for profiling Python code."""
"""Class for profiling Python code."""
# Copyright 1994, by InfoSeek Corporation, all rights reserved.
# Copyright Disney Enterprises, Inc. All Rights Reserved.
# Written by James Roskind
# Licensed to PSF under a Contributor Agreement
#
#
# Permission to use, copy, modify, and distribute this Python software
# Licensed under the Apache License, Version 2.0 (the "License");
# and its associated documentation for any purpose (subject to the
# you may not use this file except in compliance with the License.
# restriction in the following sentence) without fee is hereby granted,
# You may obtain a copy of the License at
# provided that the above copyright notice appears in all copies, and
#
# that both that copyright notice and this permission notice appear in
# http://www.apache.org/licenses/LICENSE-2.0
# supporting documentation, and that the name of InfoSeek not be used in
#
# advertising or publicity pertaining to distribution of the software
# Unless required by applicable law or agreed to in writing, software
# without specific, written prior permission. This permission is
# distributed under the License is distributed on an "AS IS" BASIS,
# explicitly restricted to the copying and modification of the software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# to remain in Python, compiled Python, or other languages (such as C)
# either express or implied. See the License for the specific language
# wherein the modified or derived code is exclusively imported into a
# governing permissions and limitations under the License.
# Python module.
#
# INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY
# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import
sys
import
sys
...
...
Lib/pstats.py
View file @
afa44a80
...
@@ -2,34 +2,26 @@
...
@@ -2,34 +2,26 @@
# Class for printing reports on profiled python code. rev 1.0 4/1/94
# Class for printing reports on profiled python code. rev 1.0 4/1/94
#
#
# Written by James Roskind
# Based on prior profile module by Sjoerd Mullender...
# Based on prior profile module by Sjoerd Mullender...
# which was hacked somewhat by: Guido van Rossum
# which was hacked somewhat by: Guido van Rossum
#
# see profile.py for more info.
# Copyright 1994, by InfoSeek Corporation, all rights reserved.
"""Class for profiling Python code."""
# Written by James Roskind
#
# Copyright Disney Enterprises, Inc. All Rights Reserved.
# Permission to use, copy, modify, and distribute this Python software
# Licensed to PSF under a Contributor Agreement
# and its associated documentation for any purpose (subject to the
#
# restriction in the following sentence) without fee is hereby granted,
# Licensed under the Apache License, Version 2.0 (the "License");
# provided that the above copyright notice appears in all copies, and
# you may not use this file except in compliance with the License.
# that both that copyright notice and this permission notice appear in
# You may obtain a copy of the License at
# supporting documentation, and that the name of InfoSeek not be used in
#
# advertising or publicity pertaining to distribution of the software
# http://www.apache.org/licenses/LICENSE-2.0
# without specific, written prior permission. This permission is
#
# explicitly restricted to the copying and modification of the software
# Unless required by applicable law or agreed to in writing, software
# to remain in Python, compiled Python, or other languages (such as C)
# distributed under the License is distributed on an "AS IS" BASIS,
# wherein the modified or derived code is exclusively imported into a
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# Python module.
# either express or implied. See the License for the specific language
#
# governing permissions and limitations under the License.
# INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY
# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import
sys
import
sys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment