From c12f03320bbc13fe818557e44b0dd0fba5896251 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 19 Jan 2014 23:55:39 -0500 Subject: [PATCH] Update makefile/cabalfile with better profiling support. Add an XML file that will eventually be tested. --- htsn-import.cabal | 9 +++++++-- makefile | 5 ++++- test/xml/Odds_XML-long-import.xml | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 test/xml/Odds_XML-long-import.xml diff --git a/htsn-import.cabal b/htsn-import.cabal index ab5bb7c..235c9d1 100644 --- a/htsn-import.cabal +++ b/htsn-import.cabal @@ -123,8 +123,13 @@ executable htsn-import ghc-prof-options: -prof - -auto-all - -caf-all + -fprof-auto + -fprof-cafs + -- The following unbreak profiling with template haskell. We have + -- to build the program twice; once without profile and again with + -- these flags. + -hisuf hi_p + -osuf o_p test-suite testsuite diff --git a/makefile b/makefile index a2327dd..207770a 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,10 @@ $(BIN): $(PN).cabal $(SRCS) runghc Setup.hs configure --user --prefix=/ runghc Setup.hs build -profile: $(PN).cabal $(SRCS) +# The $(BIN) dependency means that we should build once normally +# before attempting the profiling build (this is required for some +# reason). +profile: $(PN).cabal $(SRCS) $(BIN) runghc Setup.hs configure --user \ --enable-executable-profiling \ --prefix=/ diff --git a/test/xml/Odds_XML-long-import.xml b/test/xml/Odds_XML-long-import.xml new file mode 100644 index 0000000..f8ba832 --- /dev/null +++ b/test/xml/Odds_XML-long-import.xml @@ -0,0 +1 @@ + 20177590 AEO;CBB-ODDS Odds CBASK Las Vegas College Basketball Line Current Line as of 9:30 A.M. ET 68750 01/18/2014 12:00 PM C77 517 TEMPLE Temple B37 518 LASALLE La Salle -7 -7 -6 -7 142.5 142.5 67791 01/18/2014 12:00 PM A93 519 FLORIDAST Florida State D05 520 VIRGINIA Virginia -6 -6 -5.5 -6 68563 01/18/2014 12:00 PM C56 521 SETONHALL Seton Hall B01 522 GEORGETOWN Georgetown -7 -7 -7.5 -7 135 135 67710 01/18/2014 12:00 PM A27 523 BOSTONCOLL Boston College B95 524 NCAROLINA North Carolina -11.5 -11 -11 -11.5 143 143 Time change 68086 01/18/2014 02:30 PM C07 525 NWESTERN Northwestern B22 526 INDIANA Indiana -13 -13 -13 -13 132.5 132.5 71941 01/18/2014 12:00 PM A70 527 DELAWARE Delaware -1.5 -1.5 -2 -1.5 C03 528 NEASTERN Northeastern 67601 01/18/2014 12:00 PM C78 529 TENNESSEE Tennessee B36 530 KENTUCKY Kentucky -7.5 -7.5 -8 -7.5 139.5 139.5 70053 01/18/2014 12:00 PM C96 531 TULSA Tulsa -3.5 -3.5 -3 -3.5 B57 532 MARSHALL Marshall 148.5 148.5 68706 01/18/2014 12:00 PM C66 533 SMU SMU -5 -5 -4.5 -5 A47 534 UCF UCF 140 140 70569 01/18/2014 12:30 PM A98 535 GMASON George Mason C32 536 RISLAND Rhode Island -5 -5 -4.5 -5 134.5 134.5 67657 01/18/2014 12:30 PM C83 537 TEXASAM Texas A&M -3 -3 -3 -3 B72 538 MISSST Miss State 69349 01/18/2014 01:00 PM C70 539 MISSOURIST Missouri State C06 540 NIOWA Northern Iowa -11.5 -11.5 -10.5 -11.5 137 137 68155 01/18/2014 01:30 PM D14 541 WVIRGINIA West Virginia B34 542 KANSASST Kansas State -4.5 -5 -4.5 -4.5 67534 01/18/2014 01:30 PM A13 543 ARKANSAS Arkansas -2.5 -2.5 -2.5 -2.5 B02 544 GEORGIA Georgia 68937 01/18/2014 02:00 PM C64 545 USC USC A60 546 COLORADO Colorado -11 -11.5 -11 -11 140 140 67459 01/18/2014 02:00 PM A03 547 ALABAMA Alabama B74 548 MISSOURI Missouri -5 -5 -5.5 -5 133 133 72728 01/18/2014 02:00 PM A76 549 DREXEL Drexel C01 550 NWILMINGTN UNC-Wilmington 68438 01/18/2014 02:00 PM B56 551 MARQUETTE Marquette A35 552 BUTLER Butler -1.5 -1 pick -1.5 131 131 70516 01/18/2014 02:00 PM B66 553 MIAOHIO Miami-Ohio -1.5 -1 -1 -1.5 A20 554 BALLST Ball State Time change 70409 01/18/2014 11:00 AM C92 555 TOLEDO Toledo A02 556 AKRON Akron -2 -2 -2 -2 146.5 146.5 69190 01/18/2014 02:05 PM B51 557 LOYOLACHI Loyola-Chicago A86 558 EVANSVILLE Evansville -5 -4.5 -4 -4.5 68782 01/18/2014 02:00 PM A32 559 BROWN Brown D29 560 YALE Yale -6 -6 -6 -6 72639 01/18/2014 02:00 PM D24 561 WMILWAUKEE Milwaukee D01 562 VALPO Valparaiso -6 -6 -6 -6 67814 01/18/2014 02:00 PM B65 563 MIAFLA Miami-Florida B05 564 GATECH Georgia Tech -1.5 -1.5 -1.5 -1.5 68011 01/18/2014 02:00 PM C13 565 OKLAHOMA Oklahoma A21 566 BAYLOR Baylor -6.5 -6 -6 -6.5 155 155 67766 01/18/2014 02:00 PM B99 567 NCSTATE NC State A77 568 DUKE Duke -13 -13 -13.5 -13.5 147 147 70483 01/18/2014 02:30 PM A94 569 FORDHAM Fordham C45 570 STLOUIS Saint Louis -18.5 -18.5 -18 -18.5 141.5 141.5 Time change 70823 01/18/2014 06:00 PM B35 571 KENTST Kent State A34 572 BUFFALO Buffalo -5.5 -5.5 -4.5 -5.5 69899 01/18/2014 02:30 PM A15 573 ARKLTLROCK Ark-Little Rock B04 574 GASTATE Georgia State -12.5 -12.5 -12.5 -12.5 70292 01/18/2014 03:00 PM A69 575 DAYTON Dayton C34 576 RICHMOND Richmond -2 -2 -1.5 -2 132 132 70377 01/18/2014 04:00 PM A78 577 DUQUESNE Duquesne D06 578 VCU VA Commonwealth -18 -17.5 -18 -18 67739 01/18/2014 04:00 PM D10 579 WAKEFOREST Wake Forest A56 580 CLEMSON Clemson -7.5 -7.5 -8 -7.5 68060 01/18/2014 04:00 PM B28 581 IOWAST Iowa State -2 -1.5 -1.5 -2 C82 582 TEXAS Texas 68108 01/18/2014 04:00 PM C14 583 OKLAHOMAST Oklahoma State B33 584 KANSAS Kansas -6 -5.5 -5.5 -6 71459 01/18/2014 04:00 PM B06 585 GONZAGA Gonzaga -9.5 -9.5 -9.5 -9.5 B50 586 LOYOLACAL Loyola Marymount 67980 01/18/2014 04:00 PM C23 587 PITT Pittsburgh C76 588 SYRACUSE Syracuse -4.5 -5 -5 -4.5 67432 01/18/2014 04:00 PM A89 589 FLORIDA Florida -8 -8.5 -8 -8 A18 590 AUBURN Auburn 68883 01/18/2014 04:00 PM D12 591 WASHSTATE Washington St A36 592 CALIFORNIA California -14.5 -14.5 -14.5 -14.5 69068 01/18/2014 04:00 PM C97 593 UCLA UCLA -2.5 -2 -2.5 -2.5 C98 594 UTAH Utah 69267 01/18/2014 04:00 PM B23 595 INDIANAST Indiana State D19 596 WICHITAST Wichita State -10.5 -10 -10.5 -10.5 68521 01/18/2014 04:00 PM A73 597 DEPAUL DePaul D04 598 VILLANOVA Villanova -17.5 -17.5 -18 -17.5 72529 01/18/2014 04:00 PM B32 599 JAMESMADSN James Madison D20 600 WMMARY William & Mary -7.5 -7.5 -7.5 -7.5 69496 01/18/2014 04:00 PM C53 601 SANJOSEST San Jose St D27 602 WYOMING Wyoming -13.5 -13.5 -12.5 -13.5 67510 01/18/2014 04:30 PM B71 603 MISS Ole Miss -1 -1 -1 -1 C59 604 SCAROLINA South Carolina 68412 01/18/2014 05:00 PM A54 605 CINCINNATI Cincinnati -8 -7.5 -7.5 -8 C61 606 SFLORIDA South Florida Time change 68195 01/18/2014 06:00 PM B67 607 MICHIGAN Michigan D22 608 WISCONSIN Wisconsin -8.5 -8 -8 -8 69870 01/18/2014 05:00 PM A79 609 ECAROLINA East Carolina A92 610 FIU FIU -2 -1.5 -1.5 -2 70134 01/18/2014 05:30 PM C87 611 TXARLINGTN Texas-Arlington C71 612 TEXASST Texas State -3 -3.5 -3 -3 70077 01/18/2014 06:00 PM C91 613 TXSANANTO TX-San Antonio B69 614 MIDTENNST Middle Tennessee -16.5 -16.5 -16 -16.5 69452 01/18/2014 06:05 PM B87 615 UNLV UNLV C51 616 SANDIEGOST San Diego St -8.5 -9 -8.5 -8.5 69221 01/18/2014 06:00 PM A01 617 AIRFORCE Air Force A61 618 COLORADOST Colorado State -9 -8.5 -9 -9 68697 01/18/2014 06:00 PM A67 619 DARTMOUTH Dartmouth C43 620 STJOHNS St Johns -13 -13.5 -13 -13 68272 01/18/2014 06:00 PM C86 621 TEXASTECH Texas Tech -2.5 -2.5 -3 -2.5 C84 622 TCU TCU 70692 01/18/2014 07:00 PM A99 623 GWASH George Washington C40 624 STBONNIES St Bonaventure -3 -3 -3 -3 69002 01/18/2014 07:00 PM C44 625 STJOSEPHS Saint Josephs -6.5 -6.5 -6 -6.5 C20 626 PENN Penn 68845 01/18/2014 07:00 PM A65 627 CORNELL Cornell A62 628 COLUMBIA Columbia -15 -15 -16 -15 72394 01/18/2014 07:05 PM A74 629 DETROIT Detroit D30 630 YSU Youngstown St -7 -7 -7 -7 68374 01/18/2014 07:00 PM C21 631 PENNST Penn State C29 632 PURDUE Purdue -7 -7 -7 -7 69972 01/18/2014 07:00 PM C15 633 ODU Old Dominion A91 634 FAU Fla Atlantic -2 -1 -1 -2 69367 01/18/2014 07:00 PM B89 635 NMEXICO New Mexico -6 -6 -5.5 -6 A95 636 FRESNOST Fresno State 70941 01/18/2014 07:00 PM A83 637 EMICHIGAN Eastern Mich -5 -5 -5 -5 A48 638 CMICHIGAN Central Mich 69844 01/18/2014 07:00 PM C02 639 NTEXAS North Texas A51 640 CHARLOTTE Charlotte -8 -8.5 -8.5 -8 71725 01/18/2014 08:00 PM C24 641 PORTLAND Portland C22 642 PEPPERDINE Pepperdine -1.5 -1.5 -1.5 -1.5 70183 01/18/2014 08:00 PM C33 643 RICE Rice C95 644 TULANE Tulane -3.5 -3.5 -3.5 -3.5 70206 01/18/2014 08:00 PM C89 645 UTEP Texas-El Paso A06 646 UAB UAB -4.5 -4.5 -4.5 -4.5 69945 01/18/2014 08:00 PM A14 647 ARKANSASST Arkansas State D17 648 WKENTUCKY Western Ky -5 -5 -4.5 -5 71446 01/18/2014 08:00 PM C11 649 OHIOU Ohio -7 -7 -7 -7 C05 650 NILLINOIS Northern Ill 68487 01/18/2014 08:00 PM A66 651 CREIGHTON Creighton -4.5 -4.5 -4.5 -4.5 C28 652 PROVIDENCE Providence 69157 01/18/2014 08:05 PM B20 653 ILLINOISST Illinois State A75 654 DRAKE Drake -5 -5.5 -5.5 -5 71900 01/18/2014 08:00 PM C19 655 PACIFIC Pacific C46 656 STMARYSCA St Marys-CA -9 -9 -9 -9 68040 01/18/2014 08:00 PM B68 657 MICHIGANST Michigan State -4.5 -4.5 -5 -4.5 B19 658 ILLINOIS Illinois 70094 01/18/2014 08:30 PM B48 659 ULMONROE ULM C58 660 SALABAMA South Alabama -6.5 -6.5 -6.5 -6.5 70044 01/18/2014 08:30 PM B47 661 ULLAFAYETE Louisiana -5 -5 -5 -5 C94 662 TROY Troy 68469 01/18/2014 09:00 PM B49 663 LOUISVILLE Louisville -1.5 -2 -1.5 -1.5 A63 664 UCONN Connecticut 69277 01/18/2014 09:00 PM C99 665 UTAHST Utah State A26 666 BOISEST Boise State -8 -8 -7.5 -8 67485 01/18/2014 09:00 PM D02 667 VANDERBILT Vanderbilt B45 668 LSU LSU -8.5 -8.5 -8 -8.5 69568 01/18/2014 10:00 PM B43 669 LBEACHST Long Beach State A40 670 CALPOLY Cal Poly -4.5 -4.5 -5 -4.5 69605 01/18/2014 10:00 PM A41 671 FULLERTON Cal State Fullerton -3 -3 -3.5 -3 E64 672 UCDAVIS UC Davis 71657 01/18/2014 10:00 PM C50 673 SANDIEGOU San Diego C52 674 SANFRAN San Francisco -7 -7 -7 -7 71323 01/18/2014 10:00 PM A31 675 BYU BYU -6 -6 -6 -6 C54 676 SANTACLARA Santa Clara 69661 01/18/2014 10:30 PM A39 677 CSANTABAR UC Santa Barbara -5 -5 -5 -5 A42 678 CSNORTHRDG CS-Northridge 69041 01/18/2014 11:00 PM D11 679 WASHINGTON Washington C72 680 STANFORD Stanford -10.5 -10 -10 -10.5 69705 01/18/2014 11:59 PM A38 681 CRIVERSIDE UC Riverside B11 682 HAWAII Hawaii -15 -15 -14.5 -15 Added games 72306 01/18/2014 01:30 PM B54 683 MANHATTAN Manhattan -8 -8 -8 A87 684 FAIRFIELD Fairfield 70571 01/18/2014 02:00 PM B83 685 MURRAYST Murray State -4.5 -4.5 -4.5 G01 686 SIUED SIU Edwardsville 70520 01/18/2014 02:00 PM C79 687 TENNMARTIN Tenn-Martin B79 688 MOREHEADST Morehead State -13.5 -13.5 -13.5 71869 01/18/2014 02:00 PM C49 689 SAMFORD Samford D15 690 WCAROLINA Western Carolina -11.5 -11.5 -11.5 71240 01/18/2014 02:00 PM B03 691 GASOUTHERN Ga Southern A10 692 APPALACHAN Appalachian St -2.5 -2.5 -2.5 70274 01/18/2014 03:00 PM A19 693 AUSTINPEAY Austin Peay A81 694 EILLINOIS Eastern Ill pick pick pick 72230 01/18/2014 03:00 PM D16 695 WILLINOIS Western Ill H20 696 NDAKOTAST North Dakota St -16.5 -16 -16.5 72496 01/18/2014 04:00 PM B92 697 NIAGARA Niagara C30 698 QUINNIPIAC Quinnipiac -11 -11 -11 71212 01/18/2014 05:00 PM C25 699 PORTLANDST Portland State C04 700 NARIZONA Northern Ariz -8 -8 -8 71458 01/18/2014 05:00 PM A68 701 DAVIDSON Davidson -7.5 -7.5 -7.5 B98 702 NGREENSBRO UNC Greensboro 72206 01/18/2014 05:00 PM E88 703 NEBOMAHA Nebraska Omaha H21 704 SDAKOTAST South Dakota St -5.5 -5.5 -5.5 72134 01/18/2014 05:00 PM B25 705 IUPUFTWNE IUPU-Ft Wayne -1 -1 -1 JM1 706 SDAKOTA South Dakota 72064 01/18/2014 06:00 PM B24 707 IUPUI IUPUI A72 708 DENVER Denver -16 -16 -16 71924 01/18/2014 07:00 PM A52 709 CHATTNOOGA Chattanooga D25 710 WOFFORD Wofford -7 -6.5 -7 71362 01/18/2014 07:05 PM A96 711 FURMAN Furman A55 712 CITADEL Citadel -2.5 -2.5 -2.5 70413 01/18/2014 07:00 PM B31 713 JACKSNVLST Jacksonville St A82 714 EKENTUCKY Eastern Ky -12.5 -12.5 -12.5 70801 01/18/2014 07:00 PM B61 715 UMASS Massachusetts -4.5 -5 -4.5 A85 716 ELON Elon 72405 01/18/2014 07:00 PM C35 717 RIDER Rider B55 718 MARIST Marist -2 -2 -2 70621 01/18/2014 08:00 PM C62 719 SEMISSOURI SE Missouri St C81 720 TENNTECH Tenn Tech -2 -2 -2 70320 01/18/2014 08:30 PM A22 721 BELMONT Belmont -10.5 -10.5 -10.5 C80 722 TENNST Tennessee St 71393 01/18/2014 09:00 PM C69 723 SUTAH Southern Utah D13 724 WEBERST Weber State -25 -25 -25 71100 01/18/2014 09:05 PM F01 725 NODAKOTA North Dakota B78 726 MONTANAST Montana State -5 -5 -5 71049 01/18/2014 09:00 PM E91 727 NOCOLORADO Northern Colorado B77 728 MONTANA Montana -3.5 -4 -3.5 70908 01/18/2014 10:05 PM A84 729 EWASHINGTN Eastern Wash -1.5 -1.5 -1.5 C38 730 SACRAMENTO Sacramento St January 18, 2014, at 09:34 AM ET \ No newline at end of file -- 2.44.2