section_path: Paleobiology/Physiology
section_name: Physiology
paragraph_text: Physiology
  
  Because both modern crocodilians and birds have four-chambered hearts (albeit modified in crocodilians), it is likely that this is a trait shared by all archosaurs, including all dinosaurs. While all modern birds have high metabolisms and are endothermic ("warm-blooded"), a vigorous debate has been ongoing since the 1960s regarding how far back in the dinosaur lineage this trait extended. Various researchers have supported dinosaurs as being endothermic, ectothermic ("cold-blooded"), or somewhere in between. An emerging consensus among researchers is that, while different lineages of dinosaurs would have had different metabolisms, most of them had higher metabolic rates than other reptiles but lower than living birds and mammals, which is termed mesothermy by some. Evidence from crocodiles and their extinct relatives suggests that such elevated metabolisms could have developed in the earliest archosaurs, which were the common ancestors of dinosaurs and crocodiles.
  
  After non-avian dinosaurs were discovered, paleontologists first posited that they were ectothermic. This was used to imply that the ancient dinosaurs were relatively slow, sluggish organisms, even though many modern reptiles are fast and light-footed despite relying on external sources of heat to regulate their body temperature. The idea of dinosaurs as ectothermic remained a prevalent view until Robert T. Bakker, an early proponent of dinosaur endothermy, published an influential paper on the topic in 1968. Bakker specifically used anatomical and ecological evidence to argue that sauropods, which had hitherto been depicted as sprawling aquatic animals with their tails dragging on the ground, were endotherms that lived vigorous, terrestrial lives. In 1972, Bakker expanded on his arguments based on energy requirements and predator-prey ratios. This was one of the seminal results that led to the dinosaur renaissance.
  
  One of the greatest contributions to the modern understanding of dinosaur physiology has been paleohistology, the study of microscopic tissue structure in dinosaurs. From the 1960s forward, Armand de Ricqlès suggested that the presence of fibrolamellar bone—bony tissue with an irregular, fibrous texture and filled with blood vessels—was indicative of consistently fast growth and therefore endothermy. Fibrolamellar bone was common in both dinosaurs and pterosaurs, though not universally present. This has led to a significant body of work in reconstructing growth curves and modeling the evolution of growth rates across various dinosaur lineages, which has suggested overall that dinosaurs grew faster than living reptiles. Other lines of evidence suggesting endothermy include the presence of feathers and other types of body coverings in many lineages (see § Feathers); more consistent ratios of the isotope oxygen-18 in bony tissue compared to ectotherms, particularly as latitude and thus air temperature varied, which suggests stable internal temperatures (although these ratios can be altered during fossilization); and the discovery of polar dinosaurs, which lived in Australia, Antarctica, and Alaska when these places would have had cool, temperate climates.
  
  In saurischian dinosaurs, higher metabolisms were supported by the evolution of the avian respiratory system, characterized by an extensive system of air sacs that extended the lungs and invaded many of the bones in the skeleton, making them hollow. Such respiratory systems, which may have appeared in the earliest saurischians, would have provided them with more oxygen compared to a mammal of similar size, while also having a larger resting tidal volume and requiring a lower breathing frequency, which would have allowed them to sustain higher activity levels. The rapid airflow would also have been an effective cooling mechanism, which in conjunction with a lower metabolic rate would have prevented large sauropods from overheating. These traits may have enabled sauropods to grow quickly to gigantic sizes. Sauropods may also have benefitted from their size—their small surface area to volume ratio meant that they would have been able to thermoregulate more easily, a phenomenon termed gigantothermy.
  
  Like other reptiles, dinosaurs are primarily uricotelic, that is, their kidneys extract nitrogenous wastes from their bloodstream and excrete it as uric acid instead of urea or ammonia via the ureters into the intestine. This would have helped them to conserve water. In most living species, uric acid is excreted along with feces as a semisolid waste. However, at least some modern birds (such as hummingbirds) can be facultatively ammonotelic, excreting most of the nitrogenous wastes as ammonia. This material, as well as the output of the intestines, emerges from the cloaca. In addition, many species regurgitate pellets, and fossil pellets are known as early as the Jurassic from Anchiornis.
  
  The size and shape of the brain can be partly reconstructed based on the surrounding bones. In 1896, Marsh calculated ratios between brain weight and body weight of seven species of dinosaurs, showing that the brain of dinosaurs was proportionally smaller than in today's crocodiles, and that the brain of Stegosaurus was smaller than in any living land vertebrate. This contributed to the widespread public notion of dinosaurs as being sluggish and extraordinarily stupid. Harry Jerison, in 1973, showed that proportionally smaller brains are expected at larger body sizes, and that brain size in dinosaurs was not smaller than expected when compared to living reptiles. Later research showed that relative brain size progressively increased during the evolution of theropods, with the highest intelligence – comparable to that of modern birds – calculated for the troodontid Troodon.