- 06 May, 2015 3 commits
-
-
Chris Toshok authored
-
Chris Toshok authored
Each thread has a stack of timers (which should have automatic scope.) pushing a timer onto the stack pauses the currently running one to avoid double counting, and popping a timer resumes the previous one. also make sure we pause the current timer, and swap out the current stack of timers when swapping to/from generator stacks, since otherwise pushes/pops won't line up and we hit asserts in StatTimer. Timers and StatTimers accumulate their durations in terms of CPU ticks, which are converted to microseconds only at Stats::dump() time, calculated with our estimate of CPU frequency. Needless to say, this only works when there is no CPU stepping/scaling. There are some additions to the Timer class that allow us to get the start/end time so that we can sync up StatTimers with them, if both are used in a given piece of code. getCPUTicks() is only implemented using __rdtscp() at the moment, so won't work on anything not recent relatively recent x86. we accumulate total ticks during dumping and output both 'ticks_in_main' and 'ticks_all_timers', which should be equal.
-
Chris Toshok authored
-
- 05 May, 2015 11 commits
-
-
Kevin Modzelewski authored
These happen if you never have run the makefile build, which should become increasingly common. I didn't bother testing that this doesn't break the makefile build.
-
Kevin Modzelewski authored
fix the remaining subclass checks for list comparisons <, <=, >, >=
-
Chris Toshok authored
-
Kevin Modzelewski authored
Reduce memory by not caching analysis passes
-
Kevin Modzelewski authored
On the simple test of `pyston -c "import pip"`, it reduces memory usage from 194MB to 153MB (20% of the memory previously was cached analysis data). It also increases our benchmark geomean by ~1%, which isn't great, but I think we can get that back eventually and I don't think it's worth blocking this memory improvement for that.
-
Kevin Modzelewski authored
I guess in CPython, __file__ will be the path to the pyc if that's how the library was loaded. (We don't do that but that difference isn't the issue here.) So that makes these tests, which print __file__, sensitive to whether the last run of the test was through cpython (pyc exists and __file__ ends in pyc) or through pyston (pyc exists but was wasn't valid for cpython, and __file__ ends in py) Just do some canonicalization when printing
-
Kevin Modzelewski authored
- make heap dumping work again - refactor some of the heap statistics to work in OOM scenarios (ie be able to not collect the ones that would require allocation to track) - collect some hcls statistics as well - print stats to stderr rather than stdout - I think this makes more sense since it is not really part of the program output; it also makes it more likely that "PYSTON_RUN_ARGS=s" will work
-
Kevin Modzelewski authored
add exception_hierarchy.txt which test/cpython/test_pep352.txt needs
-
Kevin Modzelewski authored
rename member -> member_descriptor
-
Kevin Modzelewski authored
minor tester & test fixes for python microrevision compatibility
-
Kevin Modzelewski authored
Conflicts: src/runtime/float.cpp
-
- 04 May, 2015 4 commits
-
-
Kevin Modzelewski authored
list __eq__ and __ne__ work for rhs's that are list subclasses
-
Michael Arntzenius authored
-
Michael Arntzenius authored
-
Chris Toshok authored
-
- 03 May, 2015 4 commits
-
-
Kevin Modzelewski authored
prohibit _PyTuple_Resize for objects that are subclasses of tuple
-
Kevin Modzelewski authored
implement `real` and `imag` for `int`, `long`, and `float`
-
Kevin Modzelewski authored
ignore untracked files in the gflags submodule
-
Kevin Modzelewski authored
remove ununsed class BoxedUnicode
-
- 02 May, 2015 11 commits
-
-
Kevin Modzelewski authored
Add PyGC_AddRoot calls any time we assign to a static variable
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
It seems like there's only one potentially bad one (zip_directory_cache), and the rest are more or less benign (most of the occurrences are added to the module as well as attributes), but it's probably good practice.
-
Kevin Modzelewski authored
run gflags unittests
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
gflags test is passing Also add file.name
-
Kevin Modzelewski authored
It provides overrides for some of the values in the "string" module, which ends up mattering for the gflags tests.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Just another HAVE_foo define we were missing.
-
Kevin Modzelewski authored
-
- 30 Apr, 2015 7 commits
-
-
Kevin Modzelewski authored
Otherwise git keeps asking me what I want to do with the modifications in the pycrypto submodule.
-
Kevin Modzelewski authored
Conflicts: src/runtime/types.cpp
-
Kevin Modzelewski authored
Add a pycrypto integration test
-
Kevin Modzelewski authored
A quick (40s) sanity test to run before sending it off to travis-ci for the full test.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Fix misc smaller issues
-
Marius Wachtler authored
-