Commit Graph

617 Commits

Author SHA1 Message Date
Sean Rhea
a312b4a881 srm.h|cpp >> SrmRideFile.cpp and rm the former 2009-11-01 17:24:55 -05:00
Sean Rhea
a49b659014 fix eol spaces -- no functional change 2009-11-01 17:21:46 -05:00
Sean Rhea
c964e274aa only fill in intervals if the RideFile hasn't already 2009-11-01 17:19:11 -05:00
Sean Rhea
7687b7f73a use RideFileIntervals in SplitRideDialog 2009-11-01 12:47:59 -05:00
Sean Rhea
c848726f0c let the factory call fillInIntervals 2009-11-01 12:45:43 -05:00
Sean Rhea
521653993d bug fix: check that rideItem->ride is not NULL 2009-11-01 12:44:11 -05:00
Sean Rhea
4b7413295c use RideFileIntervals in htmlSummary 2009-11-01 12:01:52 -05:00
Sean Rhea
3cc99bf2b0 use RideFileIntervals in AllPlot 2009-11-01 12:01:52 -05:00
Sean Rhea
1dc513e7a9 add RideFileInterval
Eventually, I'm going to remove interval as a member of RideFilePoint, and
only use RideFileIntervals.  But I have to rework a bunch of other code first,
so for now the two will coexist.
2009-11-01 12:01:42 -05:00
Sean Rhea
522824bb40 switch RideFile::dataPoints to QVector
...so that we can binary search within them.  Also, switch a lot of
QListIterators to Qt foreach.
2009-11-01 11:51:26 -05:00
Sean Rhea
f39f2b516b oops: add units for 95% hr 2009-11-01 11:51:26 -05:00
Sean Rhea
68832ff6c0 fix tabs and eol spaces -- no functional change 2009-11-01 10:58:12 -05:00
Sean Rhea
8595f2cfc5 remove writeAsXML declaration
This should have been part of 868e3d4.
2009-11-01 07:35:08 -05:00
Robert Carlsen
3f63a69c6f Updating description for Comma-Separated Values files. 2009-10-31 17:22:37 -04:00
Sean Rhea
dbc3ed9e1c add Joe Friel's "aerobic decoupling" metric to ride summary 2009-10-31 16:22:06 -04:00
Robert Carlsen
c173c2be06 Grammatical corrections to ride file format descriptions. 2009-10-31 15:42:16 -04:00
Eric Murray
7c76937cd7 Fixed "shaking" bug with PerfPlot sliders. 2009-10-31 15:14:37 -04:00
Sean Rhea
868e3d4b6b remove XmlRideFile and "Export to XML"
These were part of an earlier attempt at a GC-specific ride file
format.  They aren't in use now, and they'll be replaced by the new
one when it's done.
2009-10-31 15:12:48 -04:00
Sean Rhea
5dc82a6c93 add descriptions to RideFile types
...and use these to get rid of the explicit list of ride file type
descriptions in the import wizard.
2009-10-31 15:00:37 -04:00
Sean Rhea
c66bf0b1c9 add RideFileFactory::suffixes() and use it
...to eliminate the problem of enumerating all possible file suffixes
all over the code.
2009-10-30 19:13:37 -04:00
Sean Rhea
edc7cc4960 fix absolutely atrocious use of tabs 2009-10-30 19:08:29 -04:00
Sean Rhea
2ab59a3905 hist much prettier with 5W-wide bins 2009-10-30 11:55:08 -04:00
Sean Rhea
f48e640565 last mod times depended on svn, remove them 2009-10-30 11:52:34 -04:00
Sean Rhea
f1e22cec42 goodbye 2000 W in cp screenshot 2009-10-30 11:50:51 -04:00
Sean Rhea
f9ff06bdd3 nit: we also import PowerTap CSV 2009-10-30 10:54:59 -04:00
Sean Rhea
af758f24ff update link to mailing list 2009-10-30 10:53:59 -04:00
Jamie Kimberley
7d2cf8d305 Add support for 3dp comutrainer files in the cp plot 2009-10-29 09:47:53 -04:00
Greg Lonnon
5a25dcb56a Computrainer 3dp file support 2009-10-29 09:47:45 -04:00
Sean Rhea
39c7787c19 fix memory leak in CsvRideFile 2009-10-28 21:05:18 -04:00
Sean Rhea
aad5a337b8 areDataPresent should return a const ptr 2009-10-27 23:38:57 -04:00
Robert Carlsen
7ec5bff235 fix SeasonParser.cpp::EndDocument() - return value was missing 2009-10-27 01:32:56 -04:00
Sean Rhea
87aad4a2dd add cp curve value, make room in best value
I am so not a UI designer, but it least now all the information is there and
visible.  UI types: please dive in at any time.
2009-10-26 20:29:20 -04:00
Sean Rhea
a91782b69b remove printf and comment 2009-10-26 19:39:29 -04:00
Robert Carlsen
e7f8f9cbd1 fix performance manager to deal with descending ride list preference. 2009-10-25 20:00:06 -04:00
Robb Romans
476aa1b48b comments about QDates in SeasonParser.cpp 2009-10-25 19:47:47 -04:00
Sean Rhea
76f89187ba update README to include build instructions
...in particular, what to do with the .pri.in files.  Also move README
to the toplevel directory.
2009-10-25 19:45:11 -04:00
Sean Rhea
d3b1a62af3 reduce memory footprint of StressCalculator
After processing each RideItem, call freeMemory to deallocate the RideFile
object inside it, since we're done with the RideFile once we have the
BikeScore.  Also call computeMetrics instead of htmlSummary, since we only
need the BikeScore and computeMetrics is faster.

After computing the stress cache from scratch on Sean's ride library
(3 years of rides), this change reduces the process virtual memory size
(VSIZE) from 769 MB to 412 MB.  Even more dramatically, it reduces the
resident set size (RSIZE) from 389 MB to 36 MB!

On Sean's MacBook, which has 4 GB of RAM, this change results in a modest
reduction in the time to compute the stress cache, from 17 seconds down to
14.  On machines with more limited memory footprints, or when dealing with
a larger ride library, the speedup could be very dramatic.  (Once the
process starts paging, it's going to crawl.)

Now that it only takes 14 seconds to calculate, it's really not clear to
me that we need store the stress cache on the filesystem at all.
2009-10-25 17:40:34 -04:00
Sean Rhea
0d45c46a2a add computeMetrics and freeMemory functions
computeMetrics computes the RideMetrics without building up the htmlSummary.
freeMemory frees the rideFile object associated with this ride.
2009-10-25 17:40:03 -04:00
Sean Rhea
b144b5ec48 assert.h to make Linux happy 2009-10-24 14:19:48 -07:00
Justin Knotzke
08c232d70b Filtering of data in Critical Plot based on Seasons
Based on the defined dates per season, CP displays all plot only
for that Season.
2009-10-22 21:45:07 -07:00
Justin Knotzke
c630d281d3 Added Season support via xml file.
Using seasons.xml, support now for a season name, start date and end date.

Fixed some memory leaks.
2009-10-22 21:45:03 -07:00
Mark Liversedge
5acf35d542 fix angle brackets in include
They break the build on win32.  Use quotes instead.
2009-10-18 18:40:22 -07:00
Justin Knotzke
f8e9227c99 Support for Qollector in Critical Power Plot
is_ride_filename wasn't filtering for qla files.
2009-10-18 08:32:11 -07:00
Eric Murray
617f034fa3 fix PM to use exp weighted avg
Also limit decimal places in STS, LTS, and SB display fields.
2009-10-16 20:46:30 -07:00
Sean Rhea
46d026674f drop ancient PowerAgent compatibility mode
This old compatibility mode was only used to verify that we could match the
output of an old version of PowerAgent, and it hasn't been used in GC in a
long time.  I can't see us ever using it again, either.
2009-10-10 12:35:35 -04:00
Sean Rhea
318c9debd4 put all our unit conversions in one header file 2009-10-10 12:27:42 -04:00
Sean Rhea
f449fbaaaf sort file names -- no functional change 2009-10-10 08:58:48 -04:00
Eric Murray
c28591142b add performance monitor 2009-10-08 16:42:55 -04:00
Sean Rhea
abf4b74cc3 abstract "Critical Power Plot" tab into its own class 2009-10-07 09:47:17 -04:00
Sean Rhea
7c90677655 minor AllPlotWindow cleanup 2009-10-07 08:20:35 -04:00